{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 练习\n",
    "\n",
    "## 准备工作"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests\n",
    "import json\n",
    "import pandas as pd\n",
    "API_key = \"2d015ae1da99945790f1601af060c108\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## [地理/逆地理编码](https://lbs.amap.com/api/webservice/guide/api/georegeo)\n",
    "> ***结构化地址的定义： 首先，地址肯定是一串字符，内含国家、省份、城市、区县、城镇、乡村、街道、门牌号码、屋邨、大厦等建筑物名称。按照由大区域名称到小区域名称组合在一起的字符。一个有效的地址应该是独一无二的。注意：针对大陆、港、澳地区的地理编码转换时可以将国家信息选择性的忽略，但省、市、城镇等级别的地址构成是不能忽略的。暂时不支持返回台湾省的详细地址信息。***\n",
    "> * 地理编码\n",
    ">> * 1、url：https://restapi.amap.com/v3/geocode/geo?parameters   \n",
    ">> * 2、请求方式：GET\n",
    ">> * 3、必填参数：key、address\n",
    "> * 逆地理编码\n",
    ">> * 1、url：https://restapi.amap.com/v3/geocode/regeo?parameters\n",
    ">> * 2、请求方式：GET\n",
    ">> * 3、必填参数：key、location（经纬度坐标）"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 地理编码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.679287,23.632575'"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "address = '广东省广州市中山大学南方学院'\n",
    "url_geo = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "params_geo = {\n",
    "    \"key\":API_key, \n",
    "    \"address\":address\n",
    "}\n",
    "response = requests.get(url = url_geo, params = params_geo)\n",
    "中山大学南方学院_location = response.json()['geocodes'][0]['location']\n",
    "中山大学南方学院_location"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 逆地理编码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'regeocode': {'roads': [{'id': '020F49F0050461203',\n",
       "    'location': '113.68,23.634',\n",
       "    'direction': '南',\n",
       "    'name': '博学路',\n",
       "    'distance': '156.951'},\n",
       "   {'id': '020F49F0050462451',\n",
       "    'location': '113.677,23.6347',\n",
       "    'direction': '东南',\n",
       "    'name': '中山路',\n",
       "    'distance': '343.951'},\n",
       "   {'id': '020F49F006047765',\n",
       "    'location': '113.682,23.6394',\n",
       "    'direction': '南',\n",
       "    'name': 'S29从莞深高速',\n",
       "    'distance': '807.947'}],\n",
       "  'roadinters': [{'second_name': '中山路',\n",
       "    'first_id': '020F49F0050461203',\n",
       "    'second_id': '020F49F0050462451',\n",
       "    'location': '113.676794,23.634661',\n",
       "    'distance': '343.951',\n",
       "    'first_name': '博学路',\n",
       "    'direction': '东南'}],\n",
       "  'formatted_address': '广东省广州市从化区温泉镇中山大学南方学院',\n",
       "  'addressComponent': {'city': '广州市',\n",
       "   'province': '广东省',\n",
       "   'adcode': '440117',\n",
       "   'district': '从化区',\n",
       "   'towncode': '440117103000',\n",
       "   'streetNumber': {'number': '7号',\n",
       "    'location': '113.678600,23.633329',\n",
       "    'direction': '西北',\n",
       "    'distance': '109.203',\n",
       "    'street': '博学路'},\n",
       "   'country': '中国',\n",
       "   'township': '温泉镇',\n",
       "   'businessAreas': [[]],\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'citycode': '020'},\n",
       "  'aois': [{'area': '536585.849985',\n",
       "    'type': '141201',\n",
       "    'id': 'B00140MR9A',\n",
       "    'location': '113.679262,23.632583',\n",
       "    'adcode': '440117',\n",
       "    'name': '中山大学南方学院',\n",
       "    'distance': '0'}],\n",
       "  'pois': [{'id': 'B00140MR9A',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.450402',\n",
       "    'name': '中山大学南方学院',\n",
       "    'location': '113.679262,23.632583',\n",
       "    'distance': '2.69979',\n",
       "    'tel': '020-61787331',\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFF2VMJ4',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道886号中山大学南方学院内',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院-综合楼',\n",
       "    'location': '113.680117,23.631544',\n",
       "    'distance': '142.466',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;学校'},\n",
       "   {'id': 'B0FFFTC9PH',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速(中山大学南方学院)',\n",
       "    'poiweight': '0.193172',\n",
       "    'name': '中山大学南方学院教学楼10号',\n",
       "    'location': '113.680125,23.633492',\n",
       "    'distance': '132.988',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00141TQKX',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院教学楼6号',\n",
       "    'location': '113.678424,23.633710',\n",
       "    'distance': '153.818',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;学校'},\n",
       "   {'id': 'B00141TQGR',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路7',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院教学楼7号',\n",
       "    'location': '113.678600,23.633330',\n",
       "    'distance': '109.298',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B00141WQCO',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路',\n",
       "    'poiweight': '0.14954',\n",
       "    'name': '中山大学南方学院教学楼8号',\n",
       "    'location': '113.680399,23.634329',\n",
       "    'distance': '225.543',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFG9IORM',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号中山大学南方学院内',\n",
       "    'poiweight': '0.287887',\n",
       "    'name': '中山大学南方学院-图书馆',\n",
       "    'location': '113.679177,23.632762',\n",
       "    'distance': '23.6163',\n",
       "    'tel': '020-61787368;020-61787371',\n",
       "    'type': '科教文化服务;图书馆;图书馆'},\n",
       "   {'id': 'B0FFKP9EQJ',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路附近',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '中山大学南方学院4号实验楼',\n",
       "    'location': '113.679963,23.632652',\n",
       "    'distance': '69.4077',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFJKIA10',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号中山大学南方学院',\n",
       "    'poiweight': '0.191691',\n",
       "    'name': '中山大学南方学院-第11教学楼',\n",
       "    'location': '113.680037,23.633173',\n",
       "    'distance': '101.294',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00141TRVH',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路21',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院教学楼2号',\n",
       "    'location': '113.677060,23.631346',\n",
       "    'distance': '264.846',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKERBQZ',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路7号附近',\n",
       "    'poiweight': '0.289141',\n",
       "    'name': '中山大学南方学院惟贤门',\n",
       "    'location': '113.678437,23.633721',\n",
       "    'distance': '154.082',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFKP81F4',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山路',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '政商研究院教学楼9号',\n",
       "    'location': '113.679949,23.633919',\n",
       "    'distance': '163.951',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKP9ET5',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路附近',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '中山大学南方学院1号实验楼',\n",
       "    'location': '113.678215,23.631370',\n",
       "    'distance': '172.86',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00141TR76',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路29',\n",
       "    'poiweight': '0.052819',\n",
       "    'name': '中山大学南方学院教学楼4号',\n",
       "    'location': '113.677460,23.630490',\n",
       "    'distance': '297.315',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKP7Q5N',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '中山大学南方学院2号实验楼',\n",
       "    'location': '113.678211,23.630956',\n",
       "    'distance': '210.76',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00140TWHT',\n",
       "    'direction': '南',\n",
       "    'businessarea': [],\n",
       "    'address': '笃行路2号',\n",
       "    'poiweight': '0.157653',\n",
       "    'name': '教工住宅1号',\n",
       "    'location': '113.678490,23.630432',\n",
       "    'distance': '251.758',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;住宅小区'},\n",
       "   {'id': 'B0G3ARGF5Y',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': [],\n",
       "    'poiweight': '0.286321',\n",
       "    'name': '中山大学南方学院教学楼1号',\n",
       "    'location': '113.677077,23.631783',\n",
       "    'distance': '241.753',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFLBEOND',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速(中山大学南方学院)',\n",
       "    'poiweight': '0.190963',\n",
       "    'name': '聚贤楼10号',\n",
       "    'location': '113.681253,23.631036',\n",
       "    'distance': '263.444',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;宿舍'},\n",
       "   {'id': 'B0FFKP81F0',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路19号附近',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '教学楼1号(文学与传媒学院)',\n",
       "    'location': '113.676866,23.631736',\n",
       "    'distance': '263.674',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKP838K',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路25',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '教学楼3号(外国语学院)',\n",
       "    'location': '113.677247,23.630947',\n",
       "    'distance': '275.62',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFJLW0O9',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路4附近',\n",
       "    'poiweight': '0.191645',\n",
       "    'name': '中山大学南方学院西区饭堂',\n",
       "    'location': '113.676210,23.632177',\n",
       "    'distance': '316.572',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKPXMCN',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山路',\n",
       "    'poiweight': '0.191739',\n",
       "    'name': '中山大学南方学院音乐系',\n",
       "    'location': '113.678792,23.635389',\n",
       "    'distance': '316.942',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFJBZLYT',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山路与博学路交叉口东南50米',\n",
       "    'poiweight': '0.297382',\n",
       "    'name': '铜像广场',\n",
       "    'location': '113.676921,23.634555',\n",
       "    'distance': '326.444',\n",
       "    'tel': [],\n",
       "    'type': '风景名胜;风景名胜;风景名胜'},\n",
       "   {'id': 'B0FFG8CSEK',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速(中山大学南方学院)',\n",
       "    'poiweight': '0.185371',\n",
       "    'name': 'L5员工宿舍',\n",
       "    'location': '113.682583,23.631487',\n",
       "    'distance': '356.923',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;宿舍'},\n",
       "   {'id': 'B0FFKPXO2S',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路附近',\n",
       "    'poiweight': '0.188247',\n",
       "    'name': '中山大学南方学院医务室',\n",
       "    'location': '113.679394,23.635924',\n",
       "    'distance': '372.556',\n",
       "    'tel': [],\n",
       "    'type': '医疗保健服务;医疗保健服务场所;医疗保健服务场所'},\n",
       "   {'id': 'B0FFH6K3U9',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇温泉大道882号中大南方H7栋1-5层',\n",
       "    'poiweight': '0.254885',\n",
       "    'name': '广州中大南方招待所',\n",
       "    'location': '113.676330,23.631332',\n",
       "    'distance': '331.438',\n",
       "    'tel': '020-61787222',\n",
       "    'type': '住宿服务;住宿服务相关;住宿服务相关'},\n",
       "   {'id': 'B0FFHHLMF8',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山大学南方学院明辩路2号第三饭堂',\n",
       "    'poiweight': '0.178935',\n",
       "    'name': '茗语轩餐厅',\n",
       "    'location': '113.681901,23.634495',\n",
       "    'distance': '341.332',\n",
       "    'tel': '13929501395;13533390928',\n",
       "    'type': '餐饮服务;中餐厅;中餐厅'},\n",
       "   {'id': 'B0FFLJV996',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': [],\n",
       "    'poiweight': '0.286264',\n",
       "    'name': '保利桃花源66BLOCK',\n",
       "    'location': '113.682954,23.631008',\n",
       "    'distance': '412.208',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;住宅小区'},\n",
       "   {'id': 'B0FFKPXY26',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速公路',\n",
       "    'poiweight': '0.21826',\n",
       "    'name': '中山大学南方学院聚贤楼5号',\n",
       "    'location': '113.680265,23.636313',\n",
       "    'distance': '427.447',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;商务住宅相关;商务住宅相关'},\n",
       "   {'id': 'B0FFGXGN3K',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '中山大学南方学院',\n",
       "    'poiweight': '0.188657',\n",
       "    'name': '中山大学南方学院宿舍H25',\n",
       "    'location': '113.683474,23.632020',\n",
       "    'distance': '430.984',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;宿舍'}]},\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000'}"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "url_regeo = \"https://restapi.amap.com/v3/geocode/regeo?parameters\"\n",
    "params_regeo = {\n",
    "    \"key\":API_key, \n",
    "    \"location\":中山大学南方学院_location, \n",
    "    \"extensions\":\"all\"\n",
    "}\n",
    "response = requests.get(url = url_regeo, params = params_regeo)\n",
    "response.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['博学路', '中山路', 'S29从莞深高速']"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 1、提取所有道路信息\n",
    "list1 = []\n",
    "for i in response.json()['regeocode']['roads']:\n",
    "    list1.append(i['name'])\n",
    "list1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "      <th>direction</th>\n",
       "      <th>name</th>\n",
       "      <th>distance</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>020F49F0050461203</td>\n",
       "      <td>113.68,23.634</td>\n",
       "      <td>南</td>\n",
       "      <td>博学路</td>\n",
       "      <td>156.951</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>020F49F0050462451</td>\n",
       "      <td>113.677,23.6347</td>\n",
       "      <td>东南</td>\n",
       "      <td>中山路</td>\n",
       "      <td>343.951</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>020F49F006047765</td>\n",
       "      <td>113.682,23.6394</td>\n",
       "      <td>南</td>\n",
       "      <td>S29从莞深高速</td>\n",
       "      <td>807.947</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                  id         location direction      name distance\n",
       "0  020F49F0050461203    113.68,23.634         南       博学路  156.951\n",
       "1  020F49F0050462451  113.677,23.6347        东南       中山路  343.951\n",
       "2   020F49F006047765  113.682,23.6394         南  S29从莞深高速  807.947"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 2、提取所有道路信息\n",
    "pd.json_normalize(response.json()['regeocode']['roads'])"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 利用函数获得地理编码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests\n",
    "import json\n",
    "def geocode(key, address):\n",
    "    #获取高德地图API的地理编码信息\n",
    "    url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "    params = {\n",
    "    \"key\":key, \n",
    "    \"address\":address\n",
    "    }\n",
    "    response = requests.get(url = url, params = params)\n",
    "    #返回值\n",
    "    return response.json()['geocodes'][0]['location']  "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.231875,23.136425'"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "address = \"广州市荔湾区粤电花园\"\n",
    "我家_location = geocode(API_key,address)\n",
    "我家_location"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## [路径规划](https://lbs.amap.com/api/webservice/guide/api/direction)\n",
    "> * 1、url：\n",
    ">> * 1、步行路径规划url：https://restapi.amap.com/v3/direction/walking?parameters\n",
    ">> * 2、公交路径规划url：https://restapi.amap.com/v3/direction/transit/integrated?parameters\n",
    ">> * 3、驾车路径规划url：https://restapi.amap.com/v3/direction/driving?parameters\n",
    ">> * 4、骑行路径规划url：https://restapi.amap.com/v4/direction/bicycling?parameters\n",
    ">> * 5、货车路径规划url：https://restapi.amap.com/v4/direction/truck?parameters\n",
    "> * 2、请求方式：GET \n",
    "> * 3、必填参数：一般都是key、origin（经纬度）、destination（经纬度）"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 步行路径规划"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'route': {'origin': '113.231875,23.136425',\n",
       "  'destination': '113.679287,23.632575',\n",
       "  'paths': [{'distance': '78565',\n",
       "    'duration': '62852',\n",
       "    'steps': [{'instruction': '向东步行23米右转',\n",
       "      'orientation': '东',\n",
       "      'road': [],\n",
       "      'distance': '23',\n",
       "      'duration': '18',\n",
       "      'polyline': '113.231866,23.136489;113.23194,23.136493;113.232092,23.136541',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向东南步行47米左转',\n",
       "      'orientation': '东南',\n",
       "      'road': [],\n",
       "      'distance': '47',\n",
       "      'duration': '38',\n",
       "      'polyline': '113.232092,23.136541;113.232292,23.136367;113.232292,23.136367;113.232426,23.13625',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿南岸路向东北步行288米左转',\n",
       "      'orientation': '东北',\n",
       "      'road': '南岸路',\n",
       "      'distance': '288',\n",
       "      'duration': '230',\n",
       "      'polyline': '113.232426,23.136246;113.232687,23.136484;113.232839,23.136576;113.232839,23.136576;113.232891,23.136636;113.232891,23.136636;113.233021,23.136797;113.233021,23.136797;113.233511,23.137296;113.233511,23.137296;113.234358,23.138151',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿南岸路步行16米右转',\n",
       "      'orientation': [],\n",
       "      'road': '南岸路',\n",
       "      'distance': '16',\n",
       "      'duration': '13',\n",
       "      'polyline': '113.234358,23.138151;113.234323,23.138294',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行29米直行',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '29',\n",
       "      'duration': '23',\n",
       "      'polyline': '113.234319,23.138294;113.234592,23.138385',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '1'},\n",
       "     {'instruction': '沿南岸路向东北步行30米左转',\n",
       "      'orientation': '东北',\n",
       "      'road': '南岸路',\n",
       "      'distance': '30',\n",
       "      'duration': '24',\n",
       "      'polyline': '113.234592,23.138385;113.234831,23.138542',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿东风西路向西步行33米向右后方行走',\n",
       "      'orientation': '西',\n",
       "      'road': '东风西路',\n",
       "      'distance': '33',\n",
       "      'duration': '26',\n",
       "      'polyline': '113.234831,23.138542;113.234531,23.138633',\n",
       "      'action': '向右后方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿环市西路向东北步行491米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '环市西路',\n",
       "      'distance': '491',\n",
       "      'duration': '393',\n",
       "      'polyline': '113.234527,23.138633;113.234648,23.138637;113.234648,23.138637;113.234792,23.138655;113.234939,23.138702;113.236037,23.139306;113.236037,23.139306;113.236402,23.139518;113.236402,23.139518;113.237287,23.139939;113.237287,23.139939;113.237396,23.139991;113.237396,23.139991;113.23786,23.140195;113.23786,23.140195;113.238125,23.140321;113.238125,23.140321;113.238333,23.140417;113.238333,23.140417;113.238819,23.14066',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿环市西路向东北步行416米向右前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '环市西路',\n",
       "      'distance': '416',\n",
       "      'duration': '333',\n",
       "      'polyline': '113.238819,23.14066;113.238859,23.140734;113.238937,23.140777;113.238937,23.140777;113.239431,23.141042;113.239431,23.141042;113.240139,23.141428;113.240139,23.141428;113.240629,23.141701;113.240629,23.141701;113.24102,23.141914;113.241172,23.141914;113.241172,23.141914;113.241367,23.142031;113.241367,23.142031;113.242092,23.142448;113.242092,23.142448;113.242248,23.14253;113.242248,23.14253;113.242322,23.142574',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行32米右转',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '32',\n",
       "      'duration': '26',\n",
       "      'polyline': '113.242322,23.142574;113.242491,23.14283',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '1'},\n",
       "     {'instruction': '沿西湾路步行22米向左前方行走',\n",
       "      'orientation': [],\n",
       "      'road': '西湾路',\n",
       "      'distance': '22',\n",
       "      'duration': '18',\n",
       "      'polyline': '113.242491,23.14283;113.242552,23.142817;113.242552,23.142817;113.242713,23.142821',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿环市西路向东北步行722米',\n",
       "      'orientation': '东北',\n",
       "      'road': '环市西路',\n",
       "      'distance': '722',\n",
       "      'duration': '578',\n",
       "      'polyline': '113.242713,23.142821;113.243129,23.143082;113.243129,23.143082;113.243446,23.143277;113.243446,23.143277;113.243498,23.143316;113.243498,23.143316;113.243993,23.143633;113.243993,23.143633;113.244041,23.143663;113.244041,23.143663;113.244266,23.143815;113.244266,23.143815;113.244779,23.144149;113.244779,23.144149;113.244839,23.144188;113.244839,23.144188;113.245443,23.144549;113.245443,23.144549;113.245916,23.144831;113.245916,23.144831;113.246124,23.144952;113.246124,23.144952;113.246589,23.145239;113.246589,23.145239;113.246871,23.145425;113.246871,23.145425;113.247161,23.145599;113.247161,23.145599;113.247253,23.145647;113.247253,23.145647;113.247917,23.146033;113.247917,23.146033;113.248381,23.146276;113.248381,23.146276;113.248516,23.146345;113.248516,23.146345;113.248672,23.146428',\n",
       "      'action': [],\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿环市西路步行51米向左前方行走',\n",
       "      'orientation': [],\n",
       "      'road': '环市西路',\n",
       "      'distance': '51',\n",
       "      'duration': '41',\n",
       "      'polyline': '113.248672,23.146428;113.248754,23.146484;113.248785,23.146554;113.248785,23.146554;113.248802,23.146632;113.248802,23.146632;113.248845,23.146845',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广园西路辅路向北步行406米右转',\n",
       "      'orientation': '北',\n",
       "      'road': '广园西路辅路',\n",
       "      'distance': '406',\n",
       "      'duration': '325',\n",
       "      'polyline': '113.248845,23.146845;113.248819,23.147248;113.248819,23.147248;113.248789,23.147656;113.248789,23.147656;113.248789,23.147713;113.248789,23.147713;113.248815,23.148181;113.248845,23.148342;113.248845,23.148342;113.248989,23.148793;113.248989,23.148793;113.249058,23.148997;113.249058,23.148997;113.249128,23.149232;113.249128,23.149232;113.249236,23.149622;113.24934,23.149931;113.24934,23.149931;113.249427,23.150226;113.249427,23.150226;113.24951,23.150451',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行35米左转',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '35',\n",
       "      'duration': '28',\n",
       "      'polyline': '113.24951,23.150451;113.249844,23.150378',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '1'},\n",
       "     {'instruction': '沿广园西路辅路向东北步行1481米向右前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '广园西路辅路',\n",
       "      'distance': '1481',\n",
       "      'duration': '1185',\n",
       "      'polyline': '113.249844,23.150373;113.249874,23.150486;113.249874,23.150486;113.249991,23.150807;113.249991,23.150807;113.250408,23.15217;113.25036,23.152309;113.25036,23.152309;113.250417,23.152509;113.250417,23.152509;113.250677,23.153342;113.250677,23.153342;113.250707,23.153429;113.250707,23.153429;113.250829,23.153828;113.250829,23.153828;113.25099,23.15421;113.251059,23.154332;113.251159,23.154444;113.251159,23.154444;113.251311,23.154596;113.251463,23.154718;113.251463,23.154718;113.251502,23.154753;113.251502,23.154753;113.251723,23.154887;113.251723,23.154887;113.251814,23.154935;113.251814,23.154935;113.252044,23.15503;113.252044,23.15503;113.252339,23.155148;113.252339,23.155148;113.252813,23.155373;113.252813,23.155373;113.253112,23.155525;113.253112,23.155525;113.253277,23.155573;113.253333,23.155603;113.253333,23.155603;113.253416,23.15566;113.253737,23.15592;113.253737,23.15592;113.254071,23.156207;113.254071,23.156207;113.254384,23.156484;113.254384,23.156484;113.254666,23.156714;113.254666,23.156714;113.254705,23.156753;113.254705,23.156753;113.254757,23.156797;113.254757,23.156797;113.255109,23.157144;113.255109,23.157144;113.25526,23.157331;113.25526,23.157331;113.255321,23.157383;113.255321,23.157383;113.25549,23.15753;113.25549,23.15753;113.255734,23.157739;113.255734,23.157739;113.255894,23.157886;113.255894,23.157886;113.256146,23.158186;113.256146,23.158186;113.256306,23.158372;113.256306,23.158372;113.257292,23.159683;113.257292,23.159683;113.257812,23.160308;113.257812,23.160308;113.257878,23.160391;113.257878,23.160391;113.258155,23.160703;113.258155,23.160703;113.258207,23.160777',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广园中路向东北步行90米',\n",
       "      'orientation': '东北',\n",
       "      'road': '广园中路',\n",
       "      'distance': '90',\n",
       "      'duration': '72',\n",
       "      'polyline': '113.258207,23.160777;113.258641,23.161033;113.25878,23.161102;113.258984,23.161146',\n",
       "      'action': [],\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广园中路向东步行259米向右前方行走',\n",
       "      'orientation': '东',\n",
       "      'road': '广园中路',\n",
       "      'distance': '259',\n",
       "      'duration': '207',\n",
       "      'polyline': '113.258984,23.161146;113.259384,23.161168;113.259648,23.161141;113.259796,23.161089;113.260304,23.160855;113.260304,23.160855;113.260382,23.160825;113.260382,23.160825;113.260556,23.160742;113.260556,23.160742;113.260794,23.160642;113.260794,23.160642;113.261228,23.160456;113.261228,23.160456;113.261298,23.160421;113.261298,23.160421;113.261359,23.160395',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行101米右转',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '101',\n",
       "      'duration': '81',\n",
       "      'polyline': '113.261359,23.160391;113.261341,23.160347;113.261341,23.160347;113.261489,23.160282;113.261489,23.160282;113.261684,23.160729;113.261684,23.160729;113.261593,23.160764;113.261593,23.160764;113.261463,23.160816',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '4'},\n",
       "     {'instruction': '向北步行177米右转',\n",
       "      'orientation': '北',\n",
       "      'road': [],\n",
       "      'distance': '177',\n",
       "      'duration': '142',\n",
       "      'polyline': '113.261458,23.160816;113.261393,23.161007;113.261393,23.161007;113.261133,23.161758;113.261133,23.161758;113.261111,23.161819;113.261111,23.161819;113.260933,23.162348',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向东步行117米左转',\n",
       "      'orientation': '东',\n",
       "      'road': [],\n",
       "      'distance': '117',\n",
       "      'duration': '94',\n",
       "      'polyline': '113.260929,23.162348;113.261098,23.162413;113.261098,23.162413;113.261306,23.162483;113.261306,23.162483;113.261528,23.162556;113.261528,23.162556;113.262005,23.162739',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿机场路向西北步行164米左转',\n",
       "      'orientation': '西北',\n",
       "      'road': '机场路',\n",
       "      'distance': '164',\n",
       "      'duration': '131',\n",
       "      'polyline': '113.262005,23.162739;113.261753,23.163286;113.261753,23.163286;113.261584,23.163624;113.261532,23.163872;113.261532,23.163872;113.261454,23.164006;113.261454,23.164006;113.261406,23.164084;113.261406,23.164084;113.261393,23.164106',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行150米左转',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '150',\n",
       "      'duration': '120',\n",
       "      'polyline': '113.261389,23.164106;113.261211,23.164054;113.261211,23.164054;113.26112,23.16401;113.26112,23.16401;113.261128,23.163984;113.261207,23.164006;113.261207,23.164006;113.261237,23.164015;113.261237,23.164015;113.261771,23.164193;113.261771,23.164193;113.261719,23.164314;113.261892,23.164349;113.261892,23.164349;113.261866,23.164505',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '4'},\n",
       "     {'instruction': '沿云城东路向西南步行42米向右后方行走',\n",
       "      'orientation': '西南',\n",
       "      'road': '云城东路',\n",
       "      'distance': '42',\n",
       "      'duration': '34',\n",
       "      'polyline': '113.261862,23.164501;113.261814,23.164497;113.261506,23.164319',\n",
       "      'action': '向右后方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿云城东路向东北步行223米向右前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '云城东路',\n",
       "      'distance': '223',\n",
       "      'duration': '178',\n",
       "      'polyline': '113.261502,23.164314;113.261532,23.164505;113.26168,23.16477;113.26168,23.16477;113.261892,23.165126;113.261892,23.165126;113.262214,23.165647;113.262313,23.165773;113.262474,23.165903;113.262617,23.166007',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿云城东路向东北步行3404米向右前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '云城东路',\n",
       "      'distance': '3404',\n",
       "      'duration': '2723',\n",
       "      'polyline': '113.262617,23.166007;113.263355,23.16625;113.263355,23.16625;113.264206,23.166489;113.264388,23.166558;113.264553,23.166649;113.264709,23.166753;113.264965,23.16701;113.264965,23.16701;113.265638,23.168138;113.265638,23.168138;113.265838,23.168442;113.265838,23.168442;113.265868,23.168507;113.265868,23.168507;113.26602,23.168759;113.26602,23.168759;113.266128,23.16895;113.266128,23.16895;113.266576,23.169809;113.266576,23.169809;113.266745,23.170143;113.266745,23.170143;113.266806,23.170265;113.266806,23.170265;113.266975,23.170595;113.266975,23.170595;113.267148,23.170938;113.267148,23.170938;113.267982,23.172483;113.267982,23.172483;113.268416,23.173216;113.268416,23.173216;113.26852,23.173403;113.26852,23.173403;113.268568,23.17349;113.268568,23.17349;113.268637,23.173611;113.268637,23.173611;113.268707,23.173741;113.268707,23.173741;113.268902,23.174102;113.268902,23.174102;113.269019,23.174306;113.269019,23.174306;113.269193,23.174596;113.269193,23.174596;113.269414,23.174965;113.269414,23.174965;113.269614,23.175286;113.269614,23.175286;113.269796,23.17559;113.269796,23.17559;113.269939,23.175812;113.269939,23.175812;113.270161,23.176159;113.270161,23.176159;113.270317,23.176428;113.270317,23.176428;113.270603,23.176853;113.270603,23.176853;113.271315,23.177995;113.271315,23.177995;113.27145,23.178212;113.27145,23.178212;113.271558,23.178377;113.271558,23.178377;113.27178,23.178724;113.27178,23.178724;113.272083,23.179214;113.272083,23.179214;113.272504,23.179883;113.272504,23.179883;113.272713,23.180213;113.272713,23.180213;113.272839,23.180269;113.273008,23.180326;113.273008,23.180326;113.272943,23.180521;113.272943,23.180521;113.273147,23.180725;113.273147,23.180725;113.273277,23.180885;113.273342,23.181007;113.273785,23.181975;113.273785,23.181975;113.274223,23.18293;113.274223,23.18293;113.274596,23.183685;113.274596,23.183685;113.27467,23.183806;113.27467,23.183806;113.275404,23.185122;113.275404,23.185122;113.275707,23.185703;113.275707,23.185703;113.275794,23.185864;113.275794,23.185864;113.276372,23.186944;113.276372,23.186944;113.276458,23.186992;113.276623,23.187266;113.276623,23.187266;113.277435,23.188767;113.277435,23.188767;113.27747,23.188828;113.27747,23.188828;113.27796,23.189722;113.27796,23.189722;113.278694,23.191033;113.278694,23.191033;113.278815,23.191246;113.278815,23.191246;113.27908,23.191615;113.279158,23.191654;113.279158,23.191654;113.279054,23.19184;113.279054,23.19184;113.279171,23.192057',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行21米左转',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '21',\n",
       "      'duration': '17',\n",
       "      'polyline': '113.279171,23.192057;113.279371,23.192114',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '1'},\n",
       "     {'instruction': '沿云城东路步行28米向右前方行走',\n",
       "      'orientation': [],\n",
       "      'road': '云城东路',\n",
       "      'distance': '28',\n",
       "      'duration': '22',\n",
       "      'polyline': '113.279371,23.192114;113.279353,23.192374',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿云城东路向东北步行1141米向右前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '云城东路',\n",
       "      'distance': '1141',\n",
       "      'duration': '913',\n",
       "      'polyline': '113.279349,23.192374;113.279601,23.192843;113.28049,23.194427;113.28049,23.194427;113.280577,23.194588;113.280577,23.194588;113.28066,23.194727;113.28066,23.194727;113.280738,23.19487;113.280738,23.19487;113.281285,23.195885;113.281285,23.195885;113.281658,23.196593;113.281658,23.196593;113.282348,23.197821;113.282348,23.197821;113.282483,23.198086;113.282483,23.198086;113.282569,23.198242;113.282569,23.198242;113.282622,23.198338;113.282622,23.198338;113.283203,23.199518;113.283203,23.199518;113.283529,23.200178;113.283919,23.20089;113.283919,23.20089;113.284141,23.20128;113.284141,23.20128;113.284271,23.201506;113.284336,23.20158;113.284397,23.20161',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿云城东路向东北步行23米右转',\n",
       "      'orientation': '东北',\n",
       "      'road': '云城东路',\n",
       "      'distance': '23',\n",
       "      'duration': '18',\n",
       "      'polyline': '113.284397,23.20161;113.284484,23.201649;113.284484,23.201649;113.284605,23.201719',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿黄石东路向东南步行133米左转',\n",
       "      'orientation': '东南',\n",
       "      'road': '黄石东路',\n",
       "      'distance': '133',\n",
       "      'duration': '106',\n",
       "      'polyline': '113.284605,23.201719;113.284774,23.201584;113.285651,23.201007',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行32米右转',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '32',\n",
       "      'duration': '26',\n",
       "      'polyline': '113.285651,23.201003;113.285803,23.201254',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '1'},\n",
       "     {'instruction': '沿黄石东路向东步行197米向左前方行走',\n",
       "      'orientation': '东',\n",
       "      'road': '黄石东路',\n",
       "      'distance': '197',\n",
       "      'duration': '158',\n",
       "      'polyline': '113.285803,23.20125;113.285842,23.201233;113.285842,23.201233;113.286037,23.201137;113.286037,23.201137;113.286558,23.200877;113.286658,23.200846;113.286788,23.200859;113.286923,23.20089;113.287122,23.201003;113.287122,23.201003;113.287244,23.201155;113.287391,23.201367',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿白云大道南辅路向北步行112米直行',\n",
       "      'orientation': '北',\n",
       "      'road': '白云大道南辅路',\n",
       "      'distance': '112',\n",
       "      'duration': '90',\n",
       "      'polyline': '113.287391,23.201367;113.287405,23.201437;113.287405,23.201437;113.287483,23.201775;113.287483,23.201775;113.287565,23.202135;113.287678,23.202352',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿白云大道北向东北步行1595米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '白云大道北',\n",
       "      'distance': '1595',\n",
       "      'duration': '1276',\n",
       "      'polyline': '113.287678,23.202352;113.287756,23.202674;113.287756,23.202674;113.287886,23.203112;113.287886,23.203112;113.287956,23.203342;113.287956,23.203342;113.28809,23.203902;113.28809,23.203902;113.288342,23.204835;113.288342,23.204835;113.288403,23.205052;113.288403,23.205052;113.288472,23.205369;113.288472,23.205369;113.288563,23.205677;113.288563,23.205677;113.288624,23.205942;113.288624,23.205942;113.288746,23.206411;113.288746,23.206411;113.288854,23.20681;113.288854,23.20681;113.289036,23.207496;113.289036,23.207496;113.289106,23.20773;113.289106,23.20773;113.289145,23.207856;113.289145,23.207856;113.28928,23.208268;113.28928,23.208268;113.289488,23.208793;113.289687,23.209232;113.289831,23.209514;113.29003,23.209861;113.290334,23.210343;113.290825,23.21105;113.290825,23.21105;113.290907,23.211172;113.290907,23.211172;113.290977,23.211272;113.290977,23.211272;113.291372,23.211845;113.291372,23.211845;113.291584,23.212148;113.291584,23.212148;113.291953,23.212669;113.291953,23.212669;113.292266,23.213116;113.292266,23.213116;113.292426,23.213342;113.292426,23.213342;113.2927,23.213746;113.2927,23.213746;113.29276,23.213832;113.29276,23.213832;113.293464,23.214818;113.293464,23.214818;113.293585,23.214983;113.293585,23.214983;113.293715,23.215174;113.293715,23.215174;113.293859,23.215378;113.293859,23.215378;113.293945,23.215486',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿白云大道北辅路向东北步行386米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '白云大道北辅路',\n",
       "      'distance': '386',\n",
       "      'duration': '309',\n",
       "      'polyline': '113.293945,23.215486;113.29395,23.215734;113.294028,23.216029;113.294028,23.216029;113.294067,23.216306;113.29411,23.216471;113.29418,23.216597;113.29418,23.216597;113.294249,23.216701;113.294249,23.216701;113.294332,23.216819;113.294332,23.216819;113.294371,23.216875;113.294371,23.216875;113.294492,23.217049;113.294492,23.217049;113.294774,23.217444;113.294774,23.217444;113.294944,23.217678;113.295078,23.217795;113.295078,23.217795;113.295178,23.217869;113.295178,23.217869;113.295447,23.218064;113.29592,23.218294',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿白云大道北向东北步行123米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '白云大道北',\n",
       "      'distance': '123',\n",
       "      'duration': '98',\n",
       "      'polyline': '113.29592,23.218294;113.296163,23.218659;113.296163,23.218659;113.296194,23.218702;113.296194,23.218702;113.296589,23.219227',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿白云大道北辅路向东北步行321米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '白云大道北辅路',\n",
       "      'distance': '321',\n",
       "      'duration': '257',\n",
       "      'polyline': '113.296589,23.219227;113.296645,23.219484;113.296836,23.219774;113.296836,23.219774;113.297292,23.220417;113.297292,23.220417;113.297804,23.221211;113.297804,23.221211;113.297852,23.22128;113.297852,23.22128;113.297973,23.22145;113.297973,23.22145;113.298108,23.221632;113.298108,23.221632;113.298186,23.221736',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿白云大道北辅路步行15米右转',\n",
       "      'orientation': [],\n",
       "      'road': '白云大道北辅路',\n",
       "      'distance': '15',\n",
       "      'duration': '12',\n",
       "      'polyline': '113.298186,23.221736;113.29816,23.221875',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行29米向右前方行走',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '29',\n",
       "      'duration': '23',\n",
       "      'polyline': '113.298155,23.221875;113.298416,23.221992',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '1'},\n",
       "     {'instruction': '沿同泰路向东步行50米左转',\n",
       "      'orientation': '东',\n",
       "      'road': '同泰路',\n",
       "      'distance': '50',\n",
       "      'duration': '40',\n",
       "      'polyline': '113.298416,23.221992;113.298902,23.221962',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿白云大道北辅路向东北步行422米右转',\n",
       "      'orientation': '东北',\n",
       "      'road': '白云大道北辅路',\n",
       "      'distance': '422',\n",
       "      'duration': '338',\n",
       "      'polyline': '113.298902,23.221957;113.298932,23.222018;113.298932,23.222018;113.299032,23.222196;113.299032,23.222196;113.299193,23.222431;113.299193,23.222431;113.299366,23.222708;113.299366,23.222708;113.299666,23.223147;113.299666,23.223147;113.299948,23.223568;113.299948,23.223568;113.300382,23.224184;113.300382,23.224184;113.300621,23.224514;113.300773,23.224774;113.300773,23.224774;113.301085,23.22523',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向东步行23米左转',\n",
       "      'orientation': '东',\n",
       "      'road': [],\n",
       "      'distance': '23',\n",
       "      'duration': '18',\n",
       "      'polyline': '113.301085,23.22523;113.301315,23.2252',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿白云堡立交桥步行172米左转',\n",
       "      'orientation': [],\n",
       "      'road': '白云堡立交桥',\n",
       "      'distance': '172',\n",
       "      'duration': '138',\n",
       "      'polyline': '113.301315,23.225195;113.30158,23.225547;113.30158,23.225547;113.301862,23.225911;113.301862,23.225911;113.30201,23.226046;113.302253,23.226319;113.302253,23.226319;113.302335,23.22645',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿白云堡道向西北步行45米右转',\n",
       "      'orientation': '西北',\n",
       "      'road': '白云堡道',\n",
       "      'distance': '45',\n",
       "      'duration': '36',\n",
       "      'polyline': '113.302335,23.22645;113.301979,23.226684',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿白云大道北向东北步行3932米左转',\n",
       "      'orientation': '东北',\n",
       "      'road': '白云大道北',\n",
       "      'distance': '3932',\n",
       "      'duration': '3146',\n",
       "      'polyline': '113.301975,23.226684;113.302062,23.226797;113.302062,23.226797;113.302296,23.227122;113.302296,23.227122;113.302587,23.227539;113.302587,23.227539;113.302739,23.227756;113.302739,23.227756;113.302826,23.227882;113.302826,23.227882;113.303129,23.22832;113.303129,23.22832;113.30339,23.228685;113.30339,23.228685;113.303776,23.229236;113.303776,23.229236;113.304128,23.229735;113.304128,23.229735;113.304457,23.230204;113.304457,23.230204;113.304792,23.230673;113.304792,23.230673;113.305495,23.231671;113.305495,23.231671;113.305968,23.232339;113.305968,23.232339;113.306241,23.232609;113.306241,23.232609;113.306385,23.232747;113.306693,23.233121;113.306693,23.233121;113.306884,23.233364;113.307205,23.233806;113.307205,23.233806;113.307799,23.23464;113.307799,23.23464;113.30921,23.236623;113.309392,23.236918;113.309414,23.237014;113.309423,23.23717;113.309475,23.237318;113.309475,23.237318;113.309852,23.237847;113.309852,23.237847;113.310087,23.23819;113.310087,23.23819;113.311697,23.240503;113.311697,23.240503;113.311858,23.240738;113.311858,23.240738;113.31201,23.240964;113.31201,23.240964;113.312109,23.241098;113.312109,23.241098;113.31227,23.241337;113.313069,23.242609;113.313559,23.243437;113.313559,23.243437;113.313911,23.244062;113.313911,23.244062;113.314145,23.244484;113.314145,23.244484;113.314527,23.245169;113.314527,23.245169;113.314787,23.245625;113.314787,23.245625;113.315551,23.246975;113.315551,23.246975;113.315816,23.247444;113.315816,23.247444;113.316389,23.248472;113.316389,23.248472;113.316975,23.249514;113.316975,23.249514;113.317387,23.250243;113.317387,23.250243;113.317669,23.25076;113.317669,23.25076;113.318073,23.251484;113.318073,23.251484;113.31829,23.251862;113.31829,23.251862;113.318793,23.252743;113.318793,23.252743;113.319288,23.253628;113.319288,23.253628;113.319774,23.254397;113.319774,23.254397;113.319961,23.254635;113.319961,23.254635;113.320243,23.25503;113.320326,23.255182;113.320326,23.255182;113.320577,23.255621;113.320577,23.255621;113.321081,23.256476;113.321081,23.256476;113.321272,23.256819;113.321272,23.256819;113.321545,23.257348',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '步行36米右转',\n",
       "      'orientation': [],\n",
       "      'road': [],\n",
       "      'distance': '36',\n",
       "      'duration': '29',\n",
       "      'polyline': '113.321541,23.257352;113.321237,23.257496',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '1'},\n",
       "     {'instruction': '沿白云大道北向东北步行32米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '白云大道北',\n",
       "      'distance': '32',\n",
       "      'duration': '26',\n",
       "      'polyline': '113.321233,23.2575;113.321393,23.257747',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路向东北步行4918米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从公路',\n",
       "      'distance': '4918',\n",
       "      'duration': '3934',\n",
       "      'polyline': '113.321393,23.257747;113.321632,23.258203;113.321632,23.258203;113.321884,23.258702;113.322201,23.259249;113.322201,23.259249;113.322357,23.259575;113.322951,23.260951;113.322951,23.260951;113.323155,23.261428;113.323155,23.261428;113.323286,23.261749;113.323286,23.261749;113.323377,23.262001;113.323377,23.262001;113.323516,23.262339;113.323585,23.26263;113.323585,23.26263;113.323728,23.263247;113.323728,23.263247;113.323828,23.263694;113.323828,23.263694;113.323911,23.264084;113.323911,23.264084;113.324002,23.264579;113.324002,23.264579;113.324071,23.26513;113.324071,23.26513;113.32411,23.265386;113.32411,23.265386;113.324141,23.265508;113.324141,23.265508;113.324253,23.266107;113.324253,23.266107;113.324353,23.266662;113.324353,23.266662;113.324462,23.267092;113.324462,23.267092;113.324653,23.267969;113.324653,23.267969;113.324727,23.268264;113.324727,23.268264;113.324753,23.26832;113.324753,23.26832;113.324805,23.268477;113.324805,23.268477;113.325056,23.269566;113.325056,23.269566;113.325139,23.269974;113.325139,23.269974;113.325178,23.270191;113.325178,23.270191;113.325226,23.270499;113.325226,23.270499;113.325256,23.270855;113.325256,23.270855;113.325339,23.271345;113.325339,23.271345;113.325408,23.271658;113.325408,23.271658;113.325512,23.272131;113.325664,23.272543;113.325664,23.272543;113.325803,23.272904;113.325803,23.272904;113.326016,23.273819;113.326016,23.273819;113.326146,23.274423;113.326285,23.274905;113.326285,23.274905;113.326293,23.274931;113.326293,23.274931;113.326597,23.275812;113.326597,23.275812;113.326871,23.276406;113.326871,23.276406;113.327101,23.276806;113.327101,23.276806;113.32727,23.277062;113.32727,23.277062;113.327535,23.277483;113.327535,23.277483;113.327665,23.277674;113.327665,23.277674;113.327865,23.277878;113.328077,23.278082;113.328077,23.278082;113.328268,23.278255;113.328659,23.278676;113.328659,23.278676;113.329227,23.27931;113.329227,23.27931;113.32977,23.279896;113.32977,23.279896;113.330451,23.280655;113.330451,23.280655;113.330929,23.281181;113.330929,23.281181;113.33138,23.281671;113.33138,23.281671;113.331571,23.281884;113.331571,23.281884;113.332135,23.282517;113.332135,23.282517;113.332487,23.282891;113.332487,23.282891;113.332852,23.283299;113.332852,23.283299;113.333433,23.283937;113.333433,23.283937;113.333984,23.284544;113.333984,23.284544;113.334319,23.284913;113.334319,23.284913;113.334614,23.285247;113.334614,23.285247;113.335256,23.285955;113.335256,23.285955;113.336311,23.287131;113.336311,23.287131;113.336645,23.287483;113.336645,23.287483;113.337088,23.287982;113.337088,23.287982;113.337951,23.288919;113.337951,23.288919;113.338958,23.290048;113.338958,23.290048;113.339332,23.290456;113.339332,23.290456;113.339918,23.291098;113.339918,23.291098;113.340178,23.291389;113.340178,23.291389;113.340382,23.291615;113.340382,23.291615;113.340864,23.292144;113.340864,23.292144;113.341428,23.29276;113.341428,23.29276;113.341797,23.293255;113.341797,23.293255;113.342062,23.293637;113.342062,23.293637;113.342604,23.294223;113.342917,23.294579;113.342917,23.294579;113.34316,23.294826;113.343342,23.295043;113.343342,23.295043;113.343663,23.295386;113.343663,23.295386;113.343993,23.295816;113.343993,23.295816;113.344128,23.295972',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从三路向东北步行1531米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从三路',\n",
       "      'distance': '1531',\n",
       "      'duration': '1225',\n",
       "      'polyline': '113.344128,23.295972;113.344657,23.296541;113.344657,23.296541;113.344978,23.296897;113.344978,23.296897;113.345395,23.2973;113.345786,23.297721;113.345786,23.297721;113.346584,23.298607;113.346584,23.298607;113.346892,23.298924;113.346892,23.298924;113.347691,23.299748;113.347691,23.299748;113.348416,23.300495;113.348416,23.300495;113.348806,23.300911;113.348806,23.300911;113.349531,23.30171;113.349531,23.30171;113.349822,23.302027;113.349822,23.302027;113.350217,23.302474;113.350217,23.302474;113.35049,23.302778;113.35049,23.302778;113.350699,23.303008;113.350699,23.303008;113.351111,23.303459;113.351111,23.303459;113.351736,23.30418;113.351736,23.30418;113.35227,23.304844;113.35227,23.304844;113.352474,23.305122;113.352591,23.305295;113.352591,23.305295;113.352782,23.305599;113.352782,23.305599;113.352947,23.305868;113.352947,23.305868;113.353003,23.306194;113.353073,23.306376;113.353307,23.306871',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从三路辅路向北步行593米直行',\n",
       "      'orientation': '北',\n",
       "      'road': '广从三路辅路',\n",
       "      'distance': '593',\n",
       "      'duration': '474',\n",
       "      'polyline': '113.353307,23.306871;113.353307,23.307001;113.353307,23.307001;113.353307,23.307062;113.35375,23.308047;113.354071,23.308876;113.354071,23.308876;113.354679,23.310482;113.354679,23.310482;113.354766,23.310694;113.354766,23.310694;113.354809,23.310842;113.354809,23.310842;113.354839,23.310946;113.354839,23.310946;113.354957,23.311372;113.354957,23.311372;113.35503,23.311649;113.35503,23.311649;113.355078,23.311819;113.355208,23.31194',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从三路向北步行1334米向左前方行走',\n",
       "      'orientation': '北',\n",
       "      'road': '广从三路',\n",
       "      'distance': '1334',\n",
       "      'duration': '1067',\n",
       "      'polyline': '113.355208,23.31194;113.355404,23.312244;113.355694,23.312943;113.355894,23.313537;113.355894,23.313537;113.355977,23.313785;113.355977,23.313785;113.356098,23.313976;113.356276,23.314353;113.356984,23.316293;113.356984,23.316293;113.357305,23.317148;113.357305,23.317148;113.357587,23.317977;113.357587,23.317977;113.357609,23.318025;113.357609,23.318025;113.358329,23.319996;113.358329,23.319996;113.358459,23.320347;113.358459,23.320347;113.35849,23.320421;113.35849,23.320421;113.358602,23.320751;113.358602,23.320751;113.358885,23.321536;113.358885,23.321536;113.359076,23.321984;113.359076,23.321984;113.359679,23.323312',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路向东北步行6742米',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从公路',\n",
       "      'distance': '6742',\n",
       "      'duration': '5394',\n",
       "      'polyline': '113.359679,23.323312;113.359605,23.323607;113.359618,23.32372;113.359631,23.323793;113.359792,23.324149;113.359792,23.324149;113.359952,23.324475;113.360395,23.324909;113.360395,23.324909;113.360486,23.325113;113.360486,23.325113;113.360625,23.325412;113.360625,23.325412;113.360768,23.325803;113.360959,23.326428;113.360959,23.326428;113.361072,23.326923;113.361072,23.326923;113.361319,23.327921;113.361319,23.327921;113.361393,23.328312;113.361393,23.328312;113.361823,23.330191;113.361823,23.330191;113.361944,23.330707;113.361944,23.330707;113.361984,23.330864;113.361984,23.330864;113.362144,23.331471;113.362144,23.331471;113.362179,23.331602;113.362179,23.331602;113.362287,23.331927;113.362287,23.331927;113.3624,23.332292;113.3624,23.332292;113.362548,23.3327;113.362852,23.333429;113.362852,23.333429;113.363203,23.334223;113.363203,23.334223;113.363498,23.334857;113.363537,23.334918;113.363537,23.334918;113.363898,23.335699;113.363898,23.335699;113.364201,23.336354;113.364201,23.336354;113.36454,23.337135;113.36454,23.337135;113.364813,23.337808;113.364813,23.337808;113.364826,23.337852;113.364826,23.337852;113.365074,23.338498;113.365074,23.338498;113.365417,23.339588;113.365417,23.339588;113.365599,23.340135;113.365599,23.340135;113.365621,23.340221;113.365621,23.340221;113.365842,23.340994;113.365842,23.340994;113.366063,23.341658;113.366063,23.341658;113.366233,23.342209;113.366233,23.342209;113.366554,23.343238;113.366706,23.343806;113.366706,23.343806;113.366727,23.343898;113.366727,23.343898;113.366775,23.344067;113.366775,23.344067;113.366827,23.344288;113.366827,23.344288;113.366957,23.344852;113.366957,23.344852;113.36707,23.345321;113.36707,23.345321;113.367218,23.345872;113.36727,23.346133;113.367283,23.346328;113.367283,23.346328;113.367344,23.346771;113.367344,23.346771;113.367405,23.346975;113.367565,23.347318;113.367565,23.347318;113.367964,23.347951;113.36829,23.34855;113.36829,23.34855;113.368789,23.349605;113.368789,23.349605;113.369323,23.350712;113.369323,23.350712;113.369488,23.351055;113.369488,23.351055;113.36987,23.351888;113.370122,23.352387;113.370122,23.352387;113.370291,23.352786;113.370291,23.352786;113.370655,23.353524;113.370655,23.353524;113.370838,23.353915;113.370838,23.353915;113.370985,23.354232;113.370985,23.354232;113.371124,23.354497;113.371124,23.354497;113.371228,23.354696;113.371228,23.354696;113.37135,23.354935;113.371597,23.355343;113.371884,23.355747;113.371884,23.355747;113.372192,23.356098;113.372192,23.356098;113.372496,23.356411;113.372496,23.356411;113.372626,23.356541;113.372626,23.356541;113.37299,23.356914;113.37299,23.356914;113.373329,23.357209;113.3749,23.358676;113.375846,23.35941;113.377287,23.360386;113.377643,23.360616;113.37911,23.361528;113.37911,23.361528;113.380126,23.362075;113.380126,23.362075;113.38053,23.362279;113.38053,23.362279;113.381063,23.362548;113.381063,23.362548;113.381437,23.36273;113.381437,23.36273;113.381497,23.36276;113.381497,23.36276;113.381645,23.362834;113.381645,23.362834;113.38197,23.362995;113.38197,23.362995;113.382183,23.363095;113.382183,23.363095;113.382674,23.363342;113.382674,23.363342;113.383056,23.363529;113.383407,23.363724;113.383407,23.363724;113.383863,23.363941;113.383863,23.363941;113.384757,23.364366;113.384757,23.364366;113.385078,23.364527;113.385078,23.364527;113.385412,23.364696;113.385412,23.364696;113.385664,23.364818;113.385664,23.364818;113.387799,23.365864;113.387799,23.365864;113.388646,23.36628;113.388646,23.36628;113.390213,23.367066;113.390213,23.367066;113.390495,23.367227;113.390495,23.367227;113.391042,23.367561;113.391042,23.367561;113.391536,23.367895;113.391536,23.367895;113.392057,23.368294;113.392951,23.369045;113.392951,23.369045;113.393507,23.36951;113.393507,23.36951;113.393971,23.369913;113.393971,23.369913;113.394149,23.370065;113.394149,23.370065;113.394857,23.370668;113.394857,23.370668;113.39523,23.371011',\n",
       "      'action': [],\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路辅路向东北步行987米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从公路辅路',\n",
       "      'distance': '987',\n",
       "      'duration': '790',\n",
       "      'polyline': '113.39523,23.371011;113.395391,23.371246;113.395443,23.371302;113.396385,23.372144;113.396385,23.372144;113.397122,23.372791;113.397122,23.372791;113.397491,23.373121;113.397491,23.373121;113.398099,23.373668;113.398099,23.373668;113.39816,23.373724;113.39816,23.373724;113.398338,23.373872;113.398338,23.373872;113.398832,23.374301;113.398832,23.374301;113.399345,23.374718;113.399345,23.374718;113.400577,23.375755;113.400577,23.375755;113.400595,23.375773;113.400595,23.375773;113.400738,23.375894;113.400738,23.375894;113.401029,23.376137;113.401029,23.376137;113.401997,23.376997;113.402127,23.377088;113.402309,23.377127',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路向东北步行539米',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从公路',\n",
       "      'distance': '539',\n",
       "      'duration': '431',\n",
       "      'polyline': '113.402309,23.377127;113.403082,23.377795;113.403312,23.377973;113.403312,23.377973;113.403602,23.378168;113.403602,23.378168;113.403737,23.37826;113.403737,23.37826;113.404119,23.378524;113.404592,23.378811;113.404592,23.378811;113.404805,23.378932;113.404805,23.378932;113.405204,23.379149;113.405204,23.379149;113.405872,23.379488;113.405872,23.379488;113.406684,23.379852',\n",
       "      'action': [],\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路辅路向东步行905米直行',\n",
       "      'orientation': '东',\n",
       "      'road': '广从公路辅路',\n",
       "      'distance': '905',\n",
       "      'duration': '724',\n",
       "      'polyline': '113.406684,23.379852;113.406827,23.379957;113.406997,23.380004;113.406997,23.380004;113.40924,23.380647;113.40924,23.380647;113.410139,23.380898;113.410139,23.380898;113.410343,23.380959;113.410343,23.380959;113.410994,23.381141;113.410994,23.381141;113.411359,23.381233;113.411359,23.381233;113.414792,23.382127;113.414792,23.382127;113.414909,23.382153;113.414909,23.382153;113.41503,23.382179;113.415195,23.382174',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路向东步行2044米向左前方行走',\n",
       "      'orientation': '东',\n",
       "      'road': '广从公路',\n",
       "      'distance': '2044',\n",
       "      'duration': '1635',\n",
       "      'polyline': '113.415195,23.38217;113.415968,23.382378;113.415968,23.382378;113.416463,23.382513;113.416463,23.382513;113.416984,23.382648;113.416984,23.382648;113.417066,23.382669;113.417066,23.382669;113.41796,23.382917;113.41796,23.382917;113.418103,23.38296;113.418103,23.38296;113.418494,23.383064;113.418494,23.383064;113.419661,23.383377;113.419661,23.383377;113.420577,23.383628;113.420577,23.383628;113.421589,23.383902;113.421589,23.383902;113.4223,23.384097;113.4223,23.384097;113.422713,23.384197;113.422713,23.384197;113.423038,23.38428;113.423038,23.38428;113.423164,23.384306;113.423164,23.384306;113.423919,23.384449;113.423919,23.384449;113.424353,23.384505;113.424353,23.384505;113.425148,23.384553;113.425148,23.384553;113.425412,23.384562;113.425412,23.384562;113.425977,23.384579;113.425977,23.384579;113.426237,23.384583;113.426237,23.384583;113.426389,23.384583;113.426389,23.384583;113.42674,23.384596;113.42674,23.384596;113.42691,23.384601;113.42691,23.384601;113.42694,23.384601;113.42694,23.384601;113.427344,23.384605;113.427344,23.384605;113.427639,23.384609;113.427639,23.384609;113.428585,23.384635;113.428585,23.384635;113.428893,23.38464;113.428893,23.38464;113.42951,23.384653;113.42951,23.384653;113.430265,23.384666;113.430265,23.384666;113.430738,23.384674;113.430738,23.384674;113.431272,23.384687;113.431272,23.384687;113.432014,23.384709;113.432014,23.384709;113.432057,23.384709;113.432057,23.384709;113.432678,23.384727;113.432678,23.384727;113.432964,23.38474;113.432964,23.38474;113.433468,23.384805;113.433468,23.384805;113.433715,23.384848;113.433715,23.384848;113.434058,23.384939;113.434475,23.385074;113.434475,23.385074;113.434926,23.385256',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路辅路向东北步行942米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从公路辅路',\n",
       "      'distance': '942',\n",
       "      'duration': '754',\n",
       "      'polyline': '113.434926,23.385256;113.435104,23.385434;113.43559,23.385686;113.43559,23.385686;113.436124,23.385959;113.437687,23.38671;113.437687,23.38671;113.438659,23.387183;113.438659,23.387183;113.439353,23.38753;113.439353,23.38753;113.44013,23.387895;113.44013,23.387895;113.440894,23.388264;113.440894,23.388264;113.44194,23.388737;113.442435,23.388898;113.442769,23.388984;113.442769,23.388984;113.44316,23.389045',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路向东北步行3677米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从公路',\n",
       "      'distance': '3677',\n",
       "      'duration': '2942',\n",
       "      'polyline': '113.44316,23.389045;113.445395,23.38974;113.44605,23.38997;113.44605,23.38997;113.446545,23.390182;113.446545,23.390182;113.446875,23.390339;113.447218,23.39053;113.447865,23.390946;113.447865,23.390946;113.448264,23.391259;113.448589,23.391549;113.448589,23.391549;113.448889,23.391836;113.449201,23.392183;113.449436,23.392483;113.449744,23.392921;113.449744,23.392921;113.450226,23.393711;113.450226,23.393711;113.450412,23.394032;113.450412,23.394032;113.450894,23.394831;113.450894,23.394831;113.451137,23.395239;113.451137,23.395239;113.452023,23.396736;113.452023,23.396736;113.452444,23.397448;113.452444,23.397448;113.452617,23.397734;113.452617,23.397734;113.452695,23.397873;113.452695,23.397873;113.452756,23.397969;113.452756,23.397969;113.453342,23.398919;113.453342,23.398919;113.454054,23.399996;113.454054,23.399996;113.454197,23.400204;113.454197,23.400204;113.454549,23.400699;113.454549,23.400699;113.454887,23.401159;113.454887,23.401159;113.455182,23.401558;113.455182,23.401558;113.455221,23.40161;113.455221,23.40161;113.455391,23.401832;113.455391,23.401832;113.455582,23.402092;113.455582,23.402092;113.455977,23.402648;113.455977,23.402648;113.456519,23.403338;113.456519,23.403338;113.456923,23.403859;113.456923,23.403859;113.457031,23.403997;113.457031,23.403997;113.457287,23.404332;113.457287,23.404332;113.457587,23.404705;113.457587,23.404705;113.458585,23.405907;113.458585,23.405907;113.459896,23.4076;113.459896,23.4076;113.459983,23.4077;113.459983,23.4077;113.460651,23.408529;113.460651,23.408529;113.461072,23.408967;113.461402,23.409258;113.461402,23.409258;113.461554,23.409384;113.461554,23.409384;113.461797,23.409579;113.461797,23.409579;113.462882,23.410378;113.462882,23.410378;113.463446,23.410786;113.463446,23.410786;113.463767,23.411098;113.463767,23.411098;113.464071,23.411332;113.464071,23.411332;113.46424,23.411463;113.464497,23.411693;113.464497,23.411693;113.464978,23.412092;113.464978,23.412092;113.465573,23.412613;113.465573,23.412613;113.466254,23.413177;113.466254,23.413177;113.466558,23.413433',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路辅路向东北步行870米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从公路辅路',\n",
       "      'distance': '870',\n",
       "      'duration': '696',\n",
       "      'polyline': '113.466558,23.413433;113.467092,23.413967;113.467092,23.413967;113.467253,23.414123;113.467253,23.414123;113.468199,23.414939;113.468199,23.414939;113.469145,23.41576;113.469145,23.41576;113.469549,23.416081;113.469549,23.416081;113.469848,23.416328;113.469848,23.416328;113.470191,23.416597;113.470304,23.416701;113.470304,23.416701;113.470503,23.416853;113.470503,23.416853;113.470725,23.417062;113.470725,23.417062;113.472509,23.41852;113.472882,23.418737',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路向东北步行638米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从公路',\n",
       "      'distance': '638',\n",
       "      'duration': '510',\n",
       "      'polyline': '113.472882,23.418737;113.472973,23.418828;113.472973,23.418828;113.473251,23.419128;113.473251,23.419128;113.473312,23.419193;113.473312,23.419193;113.473416,23.419314;113.473416,23.419314;113.473633,23.419575;113.473633,23.419575;113.473737,23.419696;113.473737,23.419696;113.473945,23.419952;113.473945,23.419952;113.47428,23.420521;113.47428,23.420521;113.474614,23.421085;113.474614,23.421085;113.474822,23.421415;113.474822,23.421415;113.474965,23.421662;113.474965,23.421662;113.475317,23.422244;113.475317,23.422244;113.475677,23.422839;113.475677,23.422839;113.47582,23.423086;113.47582,23.423086;113.476172,23.423668',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路向东北步行332米',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从南路',\n",
       "      'distance': '332',\n",
       "      'duration': '266',\n",
       "      'polyline': '113.476172,23.423668;113.476341,23.423945;113.476341,23.423945;113.476827,23.424757;113.476827,23.424757;113.477591,23.426033;113.477691,23.426254;113.477691,23.426254;113.477721,23.426324',\n",
       "      'action': [],\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路辅路向东北步行471米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从南路辅路',\n",
       "      'distance': '471',\n",
       "      'duration': '377',\n",
       "      'polyline': '113.477721,23.426324;113.477947,23.42697;113.477947,23.42697;113.478095,23.427196;113.478477,23.427839;113.478477,23.427839;113.47878,23.428381;113.47878,23.428381;113.479362,23.429401;113.479796,23.430135',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路辅路步行46米向右后方行走',\n",
       "      'orientation': [],\n",
       "      'road': '广从南路辅路',\n",
       "      'distance': '46',\n",
       "      'duration': '37',\n",
       "      'polyline': '113.479796,23.430135;113.479839,23.430304;113.479839,23.430304;113.479831,23.430443;113.479748,23.430516',\n",
       "      'action': '向右后方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿太平西路向东步行26米左转',\n",
       "      'orientation': '东',\n",
       "      'road': '太平西路',\n",
       "      'distance': '26',\n",
       "      'duration': '21',\n",
       "      'polyline': '113.479744,23.430516;113.479996,23.430456',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路辅路向东北步行484米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从南路辅路',\n",
       "      'distance': '484',\n",
       "      'duration': '387',\n",
       "      'polyline': '113.479996,23.430451;113.480048,23.430534;113.480048,23.430534;113.480312,23.430911;113.480312,23.430911;113.48043,23.431055;113.48043,23.431055;113.48056,23.431207;113.48056,23.431207;113.480681,23.431363;113.480681,23.431363;113.481359,23.431975;113.481359,23.431975;113.481458,23.432053;113.481458,23.432053;113.482105,23.432609;113.482105,23.432609;113.482635,23.433047;113.482635,23.433047;113.482917,23.433251;113.483112,23.433355;113.483112,23.433355;113.48339,23.433481',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路向东北步行1230米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从南路',\n",
       "      'distance': '1230',\n",
       "      'duration': '984',\n",
       "      'polyline': '113.48339,23.433481;113.483442,23.43352;113.483442,23.43352;113.483533,23.433585;113.483533,23.433585;113.483802,23.433811;113.483802,23.433811;113.484028,23.434015;113.484028,23.434015;113.485143,23.435026;113.485143,23.435026;113.485412,23.435278;113.485412,23.435278;113.485495,23.435369;113.485495,23.435369;113.485725,23.435577;113.485725,23.435577;113.486011,23.435846;113.486011,23.435846;113.487005,23.436814;113.487005,23.436814;113.487491,23.437274;113.487491,23.437274;113.48776,23.437552;113.48776,23.437552;113.48809,23.437938;113.488446,23.438437;113.488737,23.438963;113.488889,23.439297;113.488889,23.439297;113.489089,23.439796;113.489232,23.440295;113.489232,23.440295;113.48947,23.441363;113.48947,23.441363;113.489575,23.441819;113.489575,23.441819;113.489744,23.442595',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路辅路向北步行20米向右前方行走',\n",
       "      'orientation': '北',\n",
       "      'road': '广从南路辅路',\n",
       "      'distance': '20',\n",
       "      'duration': '16',\n",
       "      'polyline': '113.489744,23.442595;113.489688,23.442769',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路辅路向北步行1228米直行',\n",
       "      'orientation': '北',\n",
       "      'road': '广从南路辅路',\n",
       "      'distance': '1228',\n",
       "      'duration': '982',\n",
       "      'polyline': '113.489683,23.442769;113.489753,23.443069;113.489753,23.443069;113.489926,23.443872;113.489926,23.443872;113.490148,23.444957;113.490148,23.444957;113.490399,23.446089;113.490399,23.446089;113.490438,23.446228;113.490438,23.446228;113.49049,23.446493;113.49049,23.446493;113.490629,23.447044;113.490629,23.447044;113.49066,23.447192;113.49066,23.447192;113.490742,23.447569;113.490742,23.447569;113.491141,23.449397;113.491141,23.449397;113.491293,23.450122;113.491293,23.450122;113.491324,23.450252;113.491324,23.450252;113.491484,23.450951;113.491484,23.450951;113.491589,23.451393;113.491589,23.451393;113.491736,23.452031;113.491736,23.452031;113.491758,23.45214;113.491758,23.45214;113.491858,23.452587;113.491858,23.452587;113.491918,23.452878;113.492079,23.45355;113.492188,23.453676',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路向东北步行2086米右转',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从南路',\n",
       "      'distance': '2086',\n",
       "      'duration': '1669',\n",
       "      'polyline': '113.492188,23.453676;113.492491,23.454887;113.492691,23.455508;113.493003,23.456254;113.493199,23.456649;113.493407,23.457023;113.493407,23.457023;113.49355,23.457257;113.49355,23.457257;113.493711,23.457491;113.493711,23.457491;113.494015,23.457917;113.494015,23.457917;113.494106,23.45803;113.494106,23.45803;113.494358,23.458342;113.494358,23.458342;113.494878,23.458958;113.494878,23.458958;113.495239,23.459379;113.495239,23.459379;113.496024,23.46033;113.496024,23.46033;113.496146,23.460482;113.496146,23.460482;113.496298,23.460686;113.496298,23.460686;113.496549,23.461063;113.496719,23.461372;113.497539,23.463073;113.497539,23.463073;113.498433,23.464961;113.498433,23.464961;113.499089,23.466337;113.499089,23.466337;113.499327,23.466775;113.49954,23.467092;113.49954,23.467092;113.499809,23.467409;113.500126,23.467743;113.500126,23.467743;113.500417,23.46799;113.500846,23.468286;113.501072,23.46842;113.501845,23.468828;113.501845,23.468828;113.502769,23.46931',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿夏湾拿大道向南步行12米左转',\n",
       "      'orientation': '南',\n",
       "      'road': '夏湾拿大道',\n",
       "      'distance': '12',\n",
       "      'duration': '10',\n",
       "      'polyline': '113.502769,23.46931;113.502813,23.46921',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路向东北步行1044米向右前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从南路',\n",
       "      'distance': '1044',\n",
       "      'duration': '835',\n",
       "      'polyline': '113.502813,23.469206;113.503585,23.469614;113.503585,23.469614;113.504905,23.470291;113.504905,23.470291;113.50533,23.470516;113.50533,23.470516;113.506866,23.471315;113.506866,23.471315;113.507969,23.471884;113.508633,23.472201;113.509918,23.4727;113.510937,23.473021;113.510937,23.473021;113.511359,23.473151;113.511359,23.473151;113.511571,23.47322;113.511571,23.47322;113.512001,23.473351',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路辅路向东步行747米直行',\n",
       "      'orientation': '东',\n",
       "      'road': '广从南路辅路',\n",
       "      'distance': '747',\n",
       "      'duration': '598',\n",
       "      'polyline': '113.512001,23.473351;113.512287,23.473338;113.513702,23.473767;113.513702,23.473767;113.513885,23.473819;113.513885,23.473819;113.515156,23.474214;113.515156,23.474214;113.515456,23.474306;113.515456,23.474306;113.515538,23.474332;113.515538,23.474332;113.515668,23.474371;113.515668,23.474371;113.515842,23.474418;113.515842,23.474418;113.516606,23.474648;113.516606,23.474648;113.517431,23.474909;113.517431,23.474909;113.518047,23.475113;113.518047,23.475113;113.51875,23.475347;113.518919,23.475508',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路向东北步行1164米向右前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从南路',\n",
       "      'distance': '1164',\n",
       "      'duration': '931',\n",
       "      'polyline': '113.518919,23.475508;113.519171,23.475586;113.519171,23.475586;113.519644,23.475725;113.519835,23.475807;113.519835,23.475807;113.519896,23.475838;113.519896,23.475838;113.52046,23.476124;113.52046,23.476124;113.520703,23.47625;113.520703,23.47625;113.521276,23.476562;113.521276,23.476562;113.521862,23.476875;113.522574,23.477279;113.522574,23.477279;113.524036,23.478086;113.524145,23.478151;113.524145,23.478151;113.524336,23.478286;113.524336,23.478286;113.524536,23.478442;113.524883,23.478767;113.5251,23.47901;113.525968,23.480156;113.525968,23.480156;113.525985,23.480178;113.525985,23.480178;113.52635,23.480625;113.52635,23.480625;113.526992,23.481441;113.526992,23.481441;113.527509,23.482101',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从南路辅路向东北步行351米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从南路辅路',\n",
       "      'distance': '351',\n",
       "      'duration': '281',\n",
       "      'polyline': '113.527509,23.482101;113.527747,23.482222;113.52783,23.482335;113.52783,23.482335;113.52819,23.482773;113.52819,23.482773;113.528663,23.483403;113.528663,23.483403;113.529349,23.484284;113.529349,23.484284;113.529609,23.484614',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从北路辅路向东北步行360米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从北路辅路',\n",
       "      'distance': '360',\n",
       "      'duration': '288',\n",
       "      'polyline': '113.529609,23.484614;113.52967,23.484696;113.52967,23.484696;113.529852,23.484922;113.529852,23.484922;113.530369,23.48559;113.530369,23.48559;113.531033,23.486389;113.531033,23.486389;113.531141,23.486515;113.531141,23.486515;113.531645,23.487088;113.531714,23.487261',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从北路向东北步行353米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从北路',\n",
       "      'distance': '353',\n",
       "      'duration': '282',\n",
       "      'polyline': '113.531714,23.487261;113.532695,23.487973;113.532695,23.487973;113.533207,23.48829;113.533207,23.48829;113.533711,23.48852;113.533711,23.48852;113.534049,23.488668;113.534674,23.48888',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿广从公路向东北步行8195米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '广从公路',\n",
       "      'distance': '8195',\n",
       "      'duration': '6556',\n",
       "      'polyline': '113.534674,23.48888;113.535048,23.48901;113.535308,23.48908;113.535308,23.48908;113.535512,23.489136;113.535512,23.489136;113.536137,23.489288;113.536137,23.489288;113.536519,23.489379;113.536519,23.489379;113.540447,23.490378;113.540447,23.490378;113.541289,23.490582;113.541289,23.490582;113.541341,23.490595;113.541341,23.490595;113.541701,23.49072;113.542144,23.49092;113.542951,23.491415;113.543798,23.492001;113.543798,23.492001;113.54444,23.492413;113.54444,23.492413;113.544792,23.492656;113.545078,23.49283;113.545078,23.49283;113.545729,23.493203;113.545729,23.493203;113.545751,23.49322;113.545751,23.49322;113.546055,23.493403;113.546055,23.493403;113.546133,23.493455;113.546133,23.493455;113.546597,23.493815;113.546949,23.494058;113.54753,23.494427;113.548711,23.495069;113.548711,23.495069;113.548863,23.495156;113.548863,23.495156;113.549453,23.495473;113.549453,23.495473;113.55043,23.496011;113.55043,23.496011;113.552908,23.497352;113.552908,23.497352;113.553806,23.497826;113.553806,23.497826;113.554188,23.498043;113.554188,23.498043;113.55451,23.498229;113.55451,23.498229;113.555013,23.498563;113.555556,23.49898;113.555556,23.49898;113.556515,23.499787;113.556892,23.500043;113.5573,23.500295;113.55786,23.500551;113.55786,23.500551;113.558273,23.50072;113.558273,23.50072;113.559141,23.501081;113.559141,23.501081;113.559453,23.501202;113.559453,23.501202;113.560078,23.501437;113.560078,23.501437;113.560742,23.501688;113.560742,23.501688;113.5624,23.502318;113.5624,23.502318;113.564488,23.503121;113.564488,23.503121;113.565512,23.503511;113.566037,23.503746;113.566037,23.503746;113.566502,23.504006;113.56671,23.504154;113.566962,23.504349;113.566962,23.504349;113.567205,23.50457;113.567205,23.50457;113.567435,23.504796;113.567635,23.505026;113.567635,23.505026;113.56796,23.50549;113.56796,23.50549;113.56839,23.506176;113.56839,23.506176;113.568594,23.506519;113.568594,23.506519;113.568845,23.506927;113.568845,23.506927;113.569136,23.507391;113.569136,23.507391;113.56944,23.507891;113.56944,23.507891;113.569562,23.50809;113.569562,23.50809;113.569692,23.508303;113.569692,23.508303;113.570091,23.508963;113.570091,23.508963;113.570417,23.509479;113.570881,23.510013;113.57105,23.510174;113.57105,23.510174;113.571697,23.510734;113.57217,23.511115;113.572639,23.511441;113.573303,23.511858;113.574019,23.512257;113.574019,23.512257;113.574484,23.512487;113.574484,23.512487;113.5751,23.51276;113.575699,23.512999;113.576072,23.513134;113.576072,23.513134;113.576758,23.513372;113.576758,23.513372;113.578602,23.514023;113.578602,23.514023;113.579154,23.514253;113.579679,23.514536;113.579679,23.514536;113.579952,23.514705;113.579952,23.514705;113.580495,23.515122;113.580495,23.515122;113.581311,23.51579;113.581311,23.51579;113.581762,23.516163;113.581762,23.516163;113.582083,23.516428;113.582083,23.516428;113.583043,23.517227;113.583043,23.517227;113.584531,23.518442;113.584531,23.518442;113.584761,23.518633;113.584761,23.518633;113.585751,23.519449;113.585751,23.519449;113.586532,23.520091;113.586532,23.520091;113.587201,23.520621;113.5876,23.520898;113.587982,23.521124;113.588568,23.521432;113.589171,23.521684;113.589306,23.521727;113.589306,23.521727;113.589874,23.52191;113.590352,23.522018;113.590352,23.522018;113.590903,23.522101;113.59145,23.522161;113.59145,23.522161;113.59168,23.522174;113.59168,23.522174;113.591788,23.522188;113.591788,23.522188;113.591879,23.522192;113.591879,23.522192;113.592925,23.522283;113.592925,23.522283;113.593702,23.522344;113.593702,23.522344;113.594518,23.522409;113.594518,23.522409;113.594961,23.522439;113.594961,23.522439;113.595191,23.522461;113.595191,23.522461;113.595482,23.522483;113.595482,23.522483;113.595838,23.522509;113.595838,23.522509;113.596463,23.522556;113.596463,23.522556;113.597396,23.522626;113.597396,23.522626;113.598707,23.522734;113.598707,23.522734;113.599119,23.522769;113.599119,23.522769;113.599644,23.522821;113.599644,23.522821;113.600087,23.522917;113.600369,23.523012;113.600369,23.523012;113.600629,23.523138;113.600751,23.523207;113.601063,23.523429;113.601063,23.523429;113.601285,23.523628;113.601285,23.523628;113.601432,23.523802;113.601432,23.523802;113.601584,23.523971;113.601918,23.524427;113.601918,23.524427;113.602253,23.524874',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿环市东路向东北步行101米右转',\n",
       "      'orientation': '东北',\n",
       "      'road': '环市东路',\n",
       "      'distance': '101',\n",
       "      'duration': '81',\n",
       "      'polyline': '113.602253,23.524874;113.602378,23.525035;113.602378,23.525035;113.602826,23.525638',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿罗沙路向东南步行22米左转',\n",
       "      'orientation': '东南',\n",
       "      'road': '罗沙路',\n",
       "      'distance': '22',\n",
       "      'duration': '18',\n",
       "      'polyline': '113.602826,23.525638;113.603008,23.525538',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向东北步行179米右转',\n",
       "      'orientation': '东北',\n",
       "      'road': [],\n",
       "      'distance': '179',\n",
       "      'duration': '143',\n",
       "      'polyline': '113.603008,23.525534;113.603299,23.525872;113.603299,23.525872;113.603832,23.526393;113.603832,23.526393;113.604023,23.526584;113.604032,23.526619;113.604015,23.526658;113.603893,23.526753',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿环市东路向北步行4209米右转',\n",
       "      'orientation': '北',\n",
       "      'road': '环市东路',\n",
       "      'distance': '4209',\n",
       "      'duration': '3367',\n",
       "      'polyline': '113.603889,23.526753;113.604618,23.527357;113.604618,23.527357;113.604779,23.527491;113.604779,23.527491;113.605091,23.527752;113.605091,23.527752;113.605846,23.528364;113.605846,23.528364;113.606428,23.528889;113.606428,23.528889;113.606658,23.529141;113.606658,23.529141;113.606879,23.529457;113.60697,23.529609;113.60697,23.529609;113.607023,23.529714;113.607023,23.529714;113.607365,23.530503;113.607365,23.530503;113.607483,23.53079;113.607483,23.53079;113.607799,23.531571;113.607799,23.531571;113.608108,23.532344;113.608108,23.532344;113.608151,23.532439;113.608151,23.532439;113.608199,23.532548;113.608199,23.532548;113.608503,23.533307;113.608503,23.533307;113.608685,23.533737;113.608685,23.533737;113.608915,23.533924;113.608915,23.533924;113.608976,23.533954;113.608976,23.533954;113.608967,23.533958;113.608841,23.534149;113.608841,23.534149;113.608867,23.534219;113.608867,23.534219;113.609275,23.535247;113.609449,23.535911;113.609549,23.536532;113.609549,23.536532;113.609601,23.537161;113.609601,23.53763;113.609601,23.53763;113.609562,23.538303;113.609562,23.538303;113.609501,23.538681;113.609301,23.539657;113.609301,23.539657;113.609102,23.54056;113.609102,23.54056;113.608911,23.54148;113.608911,23.54148;113.608537,23.543194;113.608537,23.543194;113.608494,23.543416;113.608494,23.543416;113.608364,23.544049;113.608364,23.544049;113.608338,23.544175;113.608338,23.544175;113.608277,23.544497;113.608216,23.545056;113.60822,23.54566;113.60826,23.54615;113.60826,23.54615;113.608329,23.546966;113.608329,23.546966;113.608359,23.547261;113.608359,23.547261;113.608411,23.547522;113.608533,23.547917;113.608533,23.547917;113.608702,23.548242;113.608967,23.548637;113.608967,23.548637;113.609067,23.548741;113.609067,23.548741;113.60951,23.549158;113.60951,23.549158;113.610061,23.549605;113.610061,23.549605;113.610547,23.549996;113.610547,23.549996;113.611241,23.550573;113.611471,23.550807;113.611602,23.550964;113.611884,23.55135;113.612066,23.551654;113.612188,23.551944;113.612188,23.551944;113.612339,23.552335;113.612339,23.552335;113.612652,23.553177;113.612652,23.553177;113.612678,23.553247;113.612678,23.553247;113.612752,23.553438;113.612752,23.553438;113.612773,23.553511;113.612773,23.553511;113.613134,23.554414;113.613424,23.554922;113.613424,23.554922;113.613624,23.555213;113.613624,23.555213;113.613828,23.555486;113.613828,23.555486;113.614089,23.555786;113.614089,23.555786;113.614813,23.55651;113.614813,23.55651;113.615208,23.556901;113.615208,23.556901;113.61579,23.55747;113.61579,23.55747;113.617622,23.559266;113.617622,23.559266;113.618247,23.559887',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿灌村路向东步行781米直行',\n",
       "      'orientation': '东',\n",
       "      'road': '灌村路',\n",
       "      'distance': '781',\n",
       "      'duration': '625',\n",
       "      'polyline': '113.618247,23.559887;113.618351,23.559844;113.61855,23.5598;113.619184,23.559731;113.619184,23.559731;113.619423,23.55974;113.619423,23.55974;113.619575,23.559757;113.620221,23.559922;113.62151,23.560221;113.621771,23.560312;113.621931,23.560417;113.622044,23.560521;113.622656,23.561181;113.622999,23.561589;113.623212,23.561766;113.623485,23.561905;113.624427,23.562179;113.624983,23.562361',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿政通路向东北步行2161米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '政通路',\n",
       "      'distance': '2161',\n",
       "      'duration': '1729',\n",
       "      'polyline': '113.624983,23.562361;113.625959,23.562678;113.62625,23.562799;113.626571,23.562999;113.627409,23.563646;113.627569,23.563811;113.627661,23.563945;113.628056,23.564588;113.628255,23.565022;113.628355,23.565169;113.629058,23.565794;113.629592,23.566454;113.630109,23.566879;113.630109,23.566879;113.630451,23.567153;113.630451,23.567153;113.630764,23.567383;113.630764,23.567383;113.630942,23.567522;113.631085,23.567652;113.631215,23.56783;113.631276,23.567943;113.631276,23.567943;113.631437,23.568333;113.631437,23.568333;113.631697,23.568993;113.631797,23.569154;113.631849,23.569219;113.631988,23.569314;113.632374,23.569488;113.632773,23.569631;113.633064,23.569683;113.633064,23.569683;113.633247,23.569692;113.633247,23.569692;113.633481,23.569679;113.63375,23.569618;113.63533,23.569063;113.63648,23.568681;113.63648,23.568681;113.636832,23.568581;113.636832,23.568581;113.637205,23.56852;113.637205,23.56852;113.637426,23.568507;113.637695,23.568524;113.638051,23.568607;113.638394,23.568741;113.638898,23.569002;113.638898,23.569002;113.640404,23.569818;113.640647,23.569974;113.640859,23.570152;113.640859,23.570152;113.640959,23.57026;113.641163,23.570521;113.641163,23.570521;113.641432,23.570816',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿石海工业大道向东步行387米',\n",
       "      'orientation': '东',\n",
       "      'road': '石海工业大道',\n",
       "      'distance': '387',\n",
       "      'duration': '310',\n",
       "      'polyline': '113.641432,23.570816;113.641632,23.570998;113.641632,23.570998;113.641975,23.571224;113.642322,23.571406;113.642543,23.571497;113.642925,23.571628;113.643043,23.571649;113.643286,23.57168;113.643507,23.57168;113.643507,23.57168;113.643963,23.57168;113.643963,23.57168;113.644614,23.571671;113.644878,23.571701;113.64497,23.571727',\n",
       "      'action': [],\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿石海工业大道向东北步行1451米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '石海工业大道',\n",
       "      'distance': '1451',\n",
       "      'duration': '1161',\n",
       "      'polyline': '113.64497,23.571727;113.645247,23.571862;113.645247,23.571862;113.645964,23.572365;113.646198,23.572561;113.646415,23.572773;113.646415,23.572773;113.646606,23.572956;113.646606,23.572956;113.646788,23.573151;113.646788,23.573151;113.647274,23.573637;113.647405,23.57375;113.647405,23.57375;113.649236,23.575178;113.649236,23.575178;113.649579,23.575447;113.649579,23.575447;113.64967,23.57553;113.64967,23.57553;113.650373,23.576089;113.650373,23.576089;113.650677,23.576328;113.650677,23.576328;113.651432,23.576936;113.651432,23.576936;113.651649,23.577101;113.651649,23.577101;113.651997,23.577383;113.651997,23.577383;113.652448,23.5777;113.652708,23.57786;113.652708,23.57786;113.653424,23.578242;113.653424,23.578242;113.653676,23.578368;113.653676,23.578368;113.654562,23.578845;113.654562,23.578845;113.654913,23.579019;113.655087,23.579084;113.65605,23.579306;113.65605,23.579306;113.656406,23.579358',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿桃园西路向东北步行2775米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '桃园西路',\n",
       "      'distance': '2775',\n",
       "      'duration': '2220',\n",
       "      'polyline': '113.656406,23.579358;113.656593,23.579484;113.656719,23.57964;113.656719,23.57964;113.65724,23.580217;113.657292,23.580304;113.6574,23.580612;113.6574,23.580612;113.657431,23.580773;113.657483,23.582105;113.657483,23.582231;113.657474,23.582339;113.657435,23.582439;113.657383,23.582535;113.657161,23.582847;113.65707,23.583025;113.656984,23.583255;113.656892,23.583568;113.656879,23.583676;113.656879,23.58378;113.656905,23.583919;113.657057,23.584449;113.657109,23.584566;113.657322,23.584891;113.657322,23.584891;113.657478,23.585156;113.657543,23.585365;113.657543,23.585365;113.657691,23.586688;113.657743,23.586931;113.657813,23.587135;113.65875,23.589401;113.65875,23.589401;113.658819,23.589588;113.658819,23.589588;113.65911,23.590226;113.659627,23.591046;113.659627,23.591046;113.659826,23.591389;113.659926,23.591589;113.66046,23.592799;113.66046,23.592799;113.660543,23.593021;113.660725,23.593594;113.660825,23.593885;113.660903,23.594028;113.660903,23.594028;113.661146,23.59441;113.661306,23.594601;113.661558,23.594844;113.661558,23.594844;113.662235,23.59543;113.662235,23.59543;113.663472,23.596506;113.663472,23.596506;113.663741,23.596775;113.663741,23.596775;113.664067,23.597135;113.664397,23.597617;113.664397,23.597617;113.664792,23.598234;113.664792,23.598234;113.665252,23.59878;113.665252,23.59878;113.665282,23.598819;113.665282,23.598819;113.665516,23.599089;113.665516,23.599089;113.665777,23.599358;113.665777,23.599358;113.665951,23.599501;113.665951,23.599501;113.66622,23.59964;113.667326,23.600135;113.667326,23.600135;113.667943,23.600412',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿桃园东路向东北步行247米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': '桃园东路',\n",
       "      'distance': '247',\n",
       "      'duration': '198',\n",
       "      'polyline': '113.667943,23.600412;113.668437,23.600642;113.668659,23.600764;113.668659,23.600764;113.668785,23.600855;113.669484,23.601554;113.669484,23.601554;113.669635,23.601766;113.669635,23.601766;113.669714,23.601897',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿桃园东路向东北步行674米直行',\n",
       "      'orientation': '东北',\n",
       "      'road': '桃园东路',\n",
       "      'distance': '674',\n",
       "      'duration': '539',\n",
       "      'polyline': '113.669714,23.601897;113.669783,23.602409;113.669813,23.602513;113.669905,23.602678;113.670017,23.602791;113.670017,23.602791;113.670195,23.602899;113.670195,23.602899;113.670521,23.603069;113.670803,23.60326;113.670803,23.60326;113.671063,23.603468;113.671406,23.60385;113.671536,23.603954;113.671675,23.604002;113.673459,23.604488;113.673459,23.604488;113.673889,23.604614;113.674232,23.604679;113.675009,23.604735',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿934县道向东步行118米直行',\n",
       "      'orientation': '东',\n",
       "      'road': '934县道',\n",
       "      'distance': '118',\n",
       "      'duration': '94',\n",
       "      'polyline': '113.675009,23.604735;113.675503,23.604774;113.675503,23.604774;113.675794,23.6048;113.676159,23.604883',\n",
       "      'action': '直行',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿乌土街向东北步行165米左转',\n",
       "      'orientation': '东北',\n",
       "      'road': '乌土街',\n",
       "      'distance': '165',\n",
       "      'duration': '132',\n",
       "      'polyline': '113.676159,23.604883;113.676398,23.604996;113.676984,23.605369;113.677535,23.605668',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '沿乌土街向北步行1381米向左前方行走',\n",
       "      'orientation': '北',\n",
       "      'road': '乌土街',\n",
       "      'distance': '1381',\n",
       "      'duration': '1105',\n",
       "      'polyline': '113.677535,23.605668;113.677018,23.60625;113.676918,23.606411;113.676866,23.606536;113.676823,23.606732;113.676615,23.60773;113.676484,23.608186;113.676415,23.608481;113.676415,23.608741;113.676489,23.609232;113.676502,23.609618;113.676493,23.609844;113.676411,23.61026;113.676411,23.61026;113.676411,23.610434;113.676597,23.611484;113.67684,23.612782;113.676923,23.613355;113.677044,23.614319;113.677135,23.614822;113.677335,23.615664;113.677387,23.615812;113.677604,23.616285;113.677739,23.616554;113.677969,23.616918;113.678047,23.61707;113.67809,23.617201;113.678181,23.617652',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向西北步行412米右转',\n",
       "      'orientation': '西北',\n",
       "      'road': [],\n",
       "      'distance': '412',\n",
       "      'duration': '330',\n",
       "      'polyline': '113.678181,23.617652;113.678073,23.617826;113.678073,23.617826;113.677266,23.61878;113.676905,23.619188;113.67602,23.619792;113.675777,23.619944;113.675647,23.619987;113.675495,23.620013;113.675243,23.620013',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向东北步行680米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': [],\n",
       "      'distance': '680',\n",
       "      'duration': '544',\n",
       "      'polyline': '113.675239,23.620009;113.675595,23.620369;113.675742,23.620543;113.675872,23.62072;113.675907,23.620851;113.675907,23.62099;113.675851,23.621085;113.675768,23.621176;113.675547,23.621354;113.675438,23.621471;113.675395,23.621606;113.675378,23.621832;113.675378,23.621832;113.675382,23.622083;113.675412,23.62217;113.675495,23.622274;113.675786,23.622478;113.676037,23.622734;113.676107,23.62283;113.676267,23.623147;113.676359,23.623251;113.676528,23.623342;113.677578,23.623789;113.678411,23.624319',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向东北步行42米向左前方行走',\n",
       "      'orientation': '东北',\n",
       "      'road': [],\n",
       "      'distance': '42',\n",
       "      'duration': '34',\n",
       "      'polyline': '113.678411,23.624319;113.678555,23.624505;113.678572,23.624653',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向北步行321米向左前方行走',\n",
       "      'orientation': '北',\n",
       "      'road': [],\n",
       "      'distance': '321',\n",
       "      'duration': '257',\n",
       "      'polyline': '113.678572,23.624653;113.678455,23.624935;113.678429,23.625052;113.678433,23.625187;113.678524,23.625716;113.678615,23.625859;113.678711,23.625972;113.678937,23.626172;113.678997,23.626254;113.679136,23.626493;113.67918,23.626619;113.679249,23.626849;113.679288,23.627318',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向西北步行177米右转',\n",
       "      'orientation': '西北',\n",
       "      'road': [],\n",
       "      'distance': '177',\n",
       "      'duration': '142',\n",
       "      'polyline': '113.679288,23.627318;113.679284,23.627522;113.67924,23.627773;113.679219,23.627865;113.679162,23.62796;113.679162,23.62796;113.679049,23.628069;113.67885,23.628229;113.678689,23.628303;113.678689,23.628303;113.678576,23.628333;113.678277,23.628368',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向北步行237米右转',\n",
       "      'orientation': '北',\n",
       "      'road': [],\n",
       "      'distance': '237',\n",
       "      'duration': '190',\n",
       "      'polyline': '113.678273,23.628368;113.67829,23.628607;113.67829,23.628607;113.678312,23.62872;113.678364,23.628837;113.67842,23.628898;113.678633,23.629019;113.678685,23.62908;113.678711,23.629188;113.678711,23.629336;113.678711,23.629336;113.678711,23.63036',\n",
       "      'action': '右转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向东步行159米向左前方行走',\n",
       "      'orientation': '东',\n",
       "      'road': [],\n",
       "      'distance': '159',\n",
       "      'duration': '127',\n",
       "      'polyline': '113.678711,23.63036;113.678876,23.630399;113.678876,23.630399;113.679028,23.630425;113.679028,23.630425;113.679197,23.630469;113.679197,23.630469;113.679358,23.630516;113.67964,23.630634;113.67964,23.630634;113.68003,23.630768;113.68003,23.630768;113.680204,23.630838',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向北步行199米左转',\n",
       "      'orientation': '北',\n",
       "      'road': [],\n",
       "      'distance': '199',\n",
       "      'duration': '159',\n",
       "      'polyline': '113.680204,23.630838;113.680404,23.631089;113.680495,23.631237;113.680586,23.631432;113.680586,23.631432;113.680629,23.631536;113.680668,23.631736;113.680642,23.632135;113.68059,23.632522',\n",
       "      'action': '左转',\n",
       "      'assistant_action': [],\n",
       "      'walk_type': '0'},\n",
       "     {'instruction': '向西步行101米到达目的地',\n",
       "      'orientation': '西',\n",
       "      'road': [],\n",
       "      'distance': '101',\n",
       "      'duration': '81',\n",
       "      'polyline': '113.680586,23.632522;113.679596,23.632496',\n",
       "      'action': [],\n",
       "      'assistant_action': '到达目的地',\n",
       "      'walk_type': '0'}]}]}}"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "url_walking = \"https://restapi.amap.com/v3/direction/walking?parameters\"\n",
    "params_walking = {\n",
    "    \"key\":API_key, \n",
    "    \"origin\":我家_location, \n",
    "    \"destination\":中山大学南方学院_location\n",
    "}\n",
    "r = requests.get(url_walking, params_walking)\n",
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>instruction</th>\n",
       "      <th>orientation</th>\n",
       "      <th>road</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>action</th>\n",
       "      <th>assistant_action</th>\n",
       "      <th>walk_type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>向东步行23米右转</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>23</td>\n",
       "      <td>18</td>\n",
       "      <td>113.231866,23.136489;113.23194,23.136493;113.2...</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>向东南步行47米左转</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>47</td>\n",
       "      <td>38</td>\n",
       "      <td>113.232092,23.136541;113.232292,23.136367;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>沿南岸路向东北步行288米左转</td>\n",
       "      <td>东北</td>\n",
       "      <td>南岸路</td>\n",
       "      <td>288</td>\n",
       "      <td>230</td>\n",
       "      <td>113.232426,23.136246;113.232687,23.136484;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>沿南岸路步行16米右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>南岸路</td>\n",
       "      <td>16</td>\n",
       "      <td>13</td>\n",
       "      <td>113.234358,23.138151;113.234323,23.138294</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>步行29米直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>29</td>\n",
       "      <td>23</td>\n",
       "      <td>113.234319,23.138294;113.234592,23.138385</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>96</th>\n",
       "      <td>向西北步行177米右转</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>177</td>\n",
       "      <td>142</td>\n",
       "      <td>113.679288,23.627318;113.679284,23.627522;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>97</th>\n",
       "      <td>向北步行237米右转</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>237</td>\n",
       "      <td>190</td>\n",
       "      <td>113.678273,23.628368;113.67829,23.628607;113.6...</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>98</th>\n",
       "      <td>向东步行159米向左前方行走</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>159</td>\n",
       "      <td>127</td>\n",
       "      <td>113.678711,23.63036;113.678876,23.630399;113.6...</td>\n",
       "      <td>向左前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>99</th>\n",
       "      <td>向北步行199米左转</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>199</td>\n",
       "      <td>159</td>\n",
       "      <td>113.680204,23.630838;113.680404,23.631089;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>100</th>\n",
       "      <td>向西步行101米到达目的地</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>101</td>\n",
       "      <td>81</td>\n",
       "      <td>113.680586,23.632522;113.679596,23.632496</td>\n",
       "      <td>[]</td>\n",
       "      <td>到达目的地</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>101 rows × 9 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "         instruction orientation road distance duration  \\\n",
       "0          向东步行23米右转           东   []       23       18   \n",
       "1         向东南步行47米左转          东南   []       47       38   \n",
       "2    沿南岸路向东北步行288米左转          东北  南岸路      288      230   \n",
       "3        沿南岸路步行16米右转          []  南岸路       16       13   \n",
       "4            步行29米直行          []   []       29       23   \n",
       "..               ...         ...  ...      ...      ...   \n",
       "96       向西北步行177米右转          西北   []      177      142   \n",
       "97        向北步行237米右转           北   []      237      190   \n",
       "98    向东步行159米向左前方行走           东   []      159      127   \n",
       "99        向北步行199米左转           北   []      199      159   \n",
       "100    向西步行101米到达目的地           西   []      101       81   \n",
       "\n",
       "                                              polyline  action  \\\n",
       "0    113.231866,23.136489;113.23194,23.136493;113.2...      右转   \n",
       "1    113.232092,23.136541;113.232292,23.136367;113....      左转   \n",
       "2    113.232426,23.136246;113.232687,23.136484;113....      左转   \n",
       "3            113.234358,23.138151;113.234323,23.138294      右转   \n",
       "4            113.234319,23.138294;113.234592,23.138385      直行   \n",
       "..                                                 ...     ...   \n",
       "96   113.679288,23.627318;113.679284,23.627522;113....      右转   \n",
       "97   113.678273,23.628368;113.67829,23.628607;113.6...      右转   \n",
       "98   113.678711,23.63036;113.678876,23.630399;113.6...  向左前方行走   \n",
       "99   113.680204,23.630838;113.680404,23.631089;113....      左转   \n",
       "100          113.680586,23.632522;113.679596,23.632496      []   \n",
       "\n",
       "    assistant_action walk_type  \n",
       "0                 []         0  \n",
       "1                 []         0  \n",
       "2                 []         0  \n",
       "3                 []         0  \n",
       "4                 []         1  \n",
       "..               ...       ...  \n",
       "96                []         0  \n",
       "97                []         0  \n",
       "98                []         0  \n",
       "99                []         0  \n",
       "100            到达目的地         0  \n",
       "\n",
       "[101 rows x 9 columns]"
      ]
     },
     "execution_count": 51,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(r.json()['route']['paths'][0]['steps'])"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 公交路径规划"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '5',\n",
       " 'route': {'origin': '113.350961,23.131577',\n",
       "  'destination': '113.338188,23.114326',\n",
       "  'distance': '2939',\n",
       "  'taxi_cost': '12',\n",
       "  'transits': [{'cost': '1.0',\n",
       "    'duration': '3015',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '1545',\n",
       "    'distance': '4046',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.350975,23.131445',\n",
       "       'destination': '113.349510,23.123823',\n",
       "       'distance': '1234',\n",
       "       'duration': '1057',\n",
       "       'steps': [{'instruction': '沿明湖南路步行37米右转',\n",
       "         'road': '明湖南路',\n",
       "         'distance': '37',\n",
       "         'duration': [],\n",
       "         'polyline': '113.350975,23.131445;113.351013,23.131449;113.351357,23.131479',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真如东路步行589米向左前方行走',\n",
       "         'road': '真如东路',\n",
       "         'distance': '589',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351357,23.131479;113.351517,23.130053;113.351746,23.127756;113.351746,23.127552;113.351555,23.127048;113.351562,23.126328;113.351540,23.126207',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行234米左转',\n",
       "         'road': [],\n",
       "         'distance': '234',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351540,23.126202;113.351608,23.126177;113.351486,23.125973;113.351601,23.125769;113.351707,23.125368;113.351700,23.125113;113.351601,23.124796;113.351471,23.124531;113.351555,23.124323;113.351631,23.124336',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿黄埔大道西步行33米向左前方行走',\n",
       "         'road': '黄埔大道西',\n",
       "         'distance': '33',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351631,23.124336;113.351601,23.124462;113.351517,23.124613',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿黄埔大道西步行186米左转',\n",
       "         'road': '黄埔大道西',\n",
       "         'distance': '186',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351517,23.124613;113.351440,23.124714;113.351334,23.124817;113.351227,23.124891;113.351067,23.124966;113.350983,23.124983;113.350403,23.125109;113.350327,23.125116;113.349915,23.125187;113.349838,23.125200',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿潭村路步行155米到达跑马地花园',\n",
       "         'road': '潭村路',\n",
       "         'distance': '155',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349838,23.125200;113.349716,23.124609;113.349579,23.124092;113.349510,23.123823',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达跑马地花园'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '跑马地花园',\n",
       "          'id': '900000105872016',\n",
       "          'location': '113.349510,23.123837'},\n",
       "         'arrival_stop': {'name': '猎德码头',\n",
       "          'id': '900000105872006',\n",
       "          'location': '113.337082,23.112673'},\n",
       "         'name': '669路(金穗路总站(马场路口)--金穗路总站(马场路口))',\n",
       "         'id': '900000105872',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '2501',\n",
       "         'duration': '1691',\n",
       "         'polyline': '113.349510,23.123837;113.349510,23.123832;113.349384,23.123368;113.348611,23.120503;113.348533,23.120226;113.348537,23.120230;113.348534,23.120235;113.348534,23.120232;113.348198,23.118980;113.348000,23.118338;113.347816,23.117743;113.347725,23.117605;113.347633,23.117527;113.347450,23.117386;113.347382,23.117395;113.347153,23.117418;113.346390,23.117496;113.346389,23.117496;113.346124,23.117522;113.344839,23.117609;113.344674,23.117622;113.344132,23.117648;113.343767,23.117661;113.343459,23.117682;113.343268,23.117422;113.343264,23.117179;113.343268,23.117010;113.343260,23.115990;113.343242,23.115239;113.343229,23.114661;113.343216,23.113763;113.343203,23.113307;113.343186,23.112313;113.343095,23.112092;113.342947,23.111953;113.342856,23.111918;113.342522,23.111962;113.342066,23.112031;113.341801,23.112070;113.341805,23.112072;113.341141,23.112171;113.340675,23.112226;113.338737,23.112469;113.338371,23.112513;113.337975,23.112560;113.337082,23.112673',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': [],\n",
       "         'end_time': [],\n",
       "         'via_num': '4',\n",
       "         'via_stops': [{'name': '骏逸苑',\n",
       "           'id': '900000105872003',\n",
       "           'location': '113.348533,23.120226'},\n",
       "          {'name': '花城大道',\n",
       "           'id': '900000105872004',\n",
       "           'location': '113.346390,23.117496'},\n",
       "          {'name': '马场南路',\n",
       "           'id': '900000105872015',\n",
       "           'location': '113.343242,23.115239'},\n",
       "          {'name': '临江大道东',\n",
       "           'id': '900000105872005',\n",
       "           'location': '113.341801,23.112070'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.337013,23.112679',\n",
       "       'destination': '113.338493,23.114019',\n",
       "       'distance': '311',\n",
       "       'duration': '266',\n",
       "       'steps': [{'instruction': '沿临江大道步行139米左转',\n",
       "         'road': '临江大道',\n",
       "         'distance': '139',\n",
       "         'duration': [],\n",
       "         'polyline': '113.337013,23.112679;113.337967,23.112566;113.338371,23.112518',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿海清路步行23米向左前方行走',\n",
       "         'road': '海清路',\n",
       "         'distance': '23',\n",
       "         'duration': [],\n",
       "         'polyline': '113.338371,23.112513;113.338493,23.112631;113.338509,23.112669',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿海清路步行149米',\n",
       "         'road': '海清路',\n",
       "         'distance': '149',\n",
       "         'duration': [],\n",
       "         'polyline': '113.338509,23.112669;113.338531,23.112696;113.338539,23.112782;113.338524,23.113186;113.338493,23.114019',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '2.0',\n",
       "    'duration': '2563',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '1762',\n",
       "    'distance': '3658',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.350975,23.131445',\n",
       "       'destination': '113.349510,23.123823',\n",
       "       'distance': '1234',\n",
       "       'duration': '1057',\n",
       "       'steps': [{'instruction': '沿明湖南路步行37米右转',\n",
       "         'road': '明湖南路',\n",
       "         'distance': '37',\n",
       "         'duration': [],\n",
       "         'polyline': '113.350975,23.131445;113.351013,23.131449;113.351357,23.131479',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真如东路步行589米向左前方行走',\n",
       "         'road': '真如东路',\n",
       "         'distance': '589',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351357,23.131479;113.351517,23.130053;113.351746,23.127756;113.351746,23.127552;113.351555,23.127048;113.351562,23.126328;113.351540,23.126207',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行234米左转',\n",
       "         'road': [],\n",
       "         'distance': '234',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351540,23.126202;113.351608,23.126177;113.351486,23.125973;113.351601,23.125769;113.351707,23.125368;113.351700,23.125113;113.351601,23.124796;113.351471,23.124531;113.351555,23.124323;113.351631,23.124336',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿黄埔大道西步行33米向左前方行走',\n",
       "         'road': '黄埔大道西',\n",
       "         'distance': '33',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351631,23.124336;113.351601,23.124462;113.351517,23.124613',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿黄埔大道西步行186米左转',\n",
       "         'road': '黄埔大道西',\n",
       "         'distance': '186',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351517,23.124613;113.351440,23.124714;113.351334,23.124817;113.351227,23.124891;113.351067,23.124966;113.350983,23.124983;113.350403,23.125109;113.350327,23.125116;113.349915,23.125187;113.349838,23.125200',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿潭村路步行155米到达跑马地花园',\n",
       "         'road': '潭村路',\n",
       "         'distance': '155',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349838,23.125200;113.349716,23.124609;113.349579,23.124092;113.349510,23.123823',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达跑马地花园'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '跑马地花园',\n",
       "          'id': '440100016838044',\n",
       "          'location': '113.349505,23.123824'},\n",
       "         'arrival_stop': {'name': '珠江新城总站',\n",
       "          'id': '440100016838027',\n",
       "          'location': '113.341133,23.116398'},\n",
       "         'name': '545路(泽德花苑总站--珠江新城总站)',\n",
       "         'id': '440100016838',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '1896',\n",
       "         'duration': '1053',\n",
       "         'polyline': '113.349505,23.123824;113.349505,23.123819;113.349384,23.123368;113.348611,23.120503;113.348533,23.120226;113.348533,23.120221;113.348194,23.118980;113.347999,23.118338;113.347808,23.117704;113.347708,23.117609;113.347517,23.117474;113.347374,23.117396;113.347096,23.117426;113.346862,23.117444;113.346450,23.117487;113.345981,23.117535;113.344839,23.117609;113.344674,23.117622;113.344132,23.117648;113.343767,23.117661;113.343459,23.117682;113.343268,23.117422;113.343264,23.117179;113.343268,23.117010;113.343260,23.115990;113.343242,23.115234;113.343229,23.114661;113.342196,23.114753;113.341319,23.114835;113.340911,23.114887;113.340890,23.115234;113.340859,23.115968;113.341194,23.115985;113.341150,23.116359;113.341133,23.116398',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0600',\n",
       "         'end_time': '2230',\n",
       "         'via_num': '2',\n",
       "         'via_stops': [{'name': '骏逸苑',\n",
       "           'id': '440100016838025',\n",
       "           'location': '113.348533,23.120226'},\n",
       "          {'name': '花城大道',\n",
       "           'id': '440100016838040',\n",
       "           'location': '113.346450,23.117487'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.341148,23.116323',\n",
       "       'destination': '113.338478,23.114336',\n",
       "       'distance': '528',\n",
       "       'duration': '452',\n",
       "       'steps': [{'instruction': '步行37米右转',\n",
       "         'road': [],\n",
       "         'distance': '37',\n",
       "         'duration': [],\n",
       "         'polyline': '113.341148,23.116323;113.341194,23.115990',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿海明路步行282米左转',\n",
       "         'road': '海明路',\n",
       "         'distance': '282',\n",
       "         'duration': [],\n",
       "         'polyline': '113.341194,23.115986;113.340858,23.115973;113.340790,23.115973;113.340416,23.115976;113.339798,23.116058;113.339691,23.116076;113.338829,23.116177;113.338509,23.116220;113.338432,23.116228',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿海清路步行209米',\n",
       "         'road': '海清路',\n",
       "         'distance': '209',\n",
       "         'duration': [],\n",
       "         'polyline': '113.338425,23.116228;113.338455,23.115051;113.338478,23.114336',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '2.0',\n",
       "    'duration': '2895',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '2149',\n",
       "    'distance': '3934',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.350975,23.131445',\n",
       "       'destination': '113.343330,23.123077',\n",
       "       'distance': '1838',\n",
       "       'duration': '1575',\n",
       "       'steps': [{'instruction': '沿明湖南路步行37米右转',\n",
       "         'road': '明湖南路',\n",
       "         'distance': '37',\n",
       "         'duration': [],\n",
       "         'polyline': '113.350975,23.131445;113.351013,23.131449;113.351357,23.131479',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真如东路步行930米向右前方行走',\n",
       "         'road': '真如东路',\n",
       "         'distance': '930',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351357,23.131479;113.351517,23.130053;113.351746,23.127756;113.351746,23.127552;113.351555,23.127048;113.351562,23.126328;113.351540,23.126207;113.351440,23.126041;113.351288,23.125912;113.351189,23.125847;113.351112,23.125807;113.350983,23.125769;113.350487,23.125786;113.349709,23.125925;113.348846,23.126116;113.348778,23.126116;113.348732,23.126099;113.348434,23.126003',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿黄埔大道西步行505米左转',\n",
       "         'road': '黄埔大道西',\n",
       "         'distance': '505',\n",
       "         'duration': [],\n",
       "         'polyline': '113.348434,23.125998;113.347878,23.126072;113.347603,23.126112;113.347534,23.126116;113.347221,23.126137;113.346855,23.126163;113.346703,23.126177;113.346245,23.126198;113.345619,23.126232;113.344688,23.126293;113.344040,23.126341;113.343880,23.126354;113.343674,23.126375;113.343460,23.126389',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿马场路步行366米到达红线女中心',\n",
       "         'road': '马场路',\n",
       "         'distance': '366',\n",
       "         'duration': [],\n",
       "         'polyline': '113.343460,23.126389;113.343376,23.126038;113.343376,23.125919;113.343361,23.125494;113.343353,23.125139;113.343346,23.124201;113.343346,23.123955;113.343346,23.123476;113.343330,23.123077',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达红线女中心'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '红线女中心',\n",
       "          'id': '440100016237010',\n",
       "          'location': '113.343323,23.123074'},\n",
       "         'arrival_stop': {'name': '猎德码头',\n",
       "          'id': '440100016237014',\n",
       "          'location': '113.337013,23.112682'},\n",
       "         'name': '138路(东莞庄总站--五羊新城总站)',\n",
       "         'id': '440100016237',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '1785',\n",
       "         'duration': '1053',\n",
       "         'polyline': '113.343323,23.123074;113.343323,23.122465;113.343323,23.122135;113.343323,23.121876;113.343323,23.121498;113.343346,23.121321;113.343346,23.120838;113.343315,23.119480;113.343315,23.119381;113.343300,23.118837;113.343300,23.118729;113.343300,23.118732;113.343300,23.118729;113.343300,23.118616;113.343300,23.118425;113.343292,23.117977;113.343277,23.117701;113.343269,23.117422;113.343269,23.117178;113.343269,23.117008;113.343262,23.115990;113.343246,23.115242;113.343246,23.115238;113.343224,23.114662;113.343216,23.113762;113.343201,23.113306;113.343193,23.112373;113.343117,23.112127;113.343063,23.112062;113.342949,23.111954;113.342865,23.111908;113.342339,23.111992;113.342064,23.112032;113.341805,23.112072;113.341141,23.112171;113.340675,23.112226;113.338737,23.112469;113.338371,23.112513;113.337975,23.112560;113.337013,23.112682',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': [],\n",
       "         'end_time': [],\n",
       "         'via_num': '3',\n",
       "         'via_stops': [{'name': '马场路中',\n",
       "           'id': '440100016237011',\n",
       "           'location': '113.343300,23.118729'},\n",
       "          {'name': '马场路南',\n",
       "           'id': '440100016237022',\n",
       "           'location': '113.343246,23.115242'},\n",
       "          {'name': '临江大道东',\n",
       "           'id': '440100016237013',\n",
       "           'location': '113.341805,23.112072'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.337013,23.112679',\n",
       "       'destination': '113.338493,23.114019',\n",
       "       'distance': '311',\n",
       "       'duration': '266',\n",
       "       'steps': [{'instruction': '沿临江大道步行139米左转',\n",
       "         'road': '临江大道',\n",
       "         'distance': '139',\n",
       "         'duration': [],\n",
       "         'polyline': '113.337013,23.112679;113.337967,23.112566;113.338371,23.112518',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿海清路步行23米向左前方行走',\n",
       "         'road': '海清路',\n",
       "         'distance': '23',\n",
       "         'duration': [],\n",
       "         'polyline': '113.338371,23.112513;113.338493,23.112631;113.338509,23.112669',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿海清路步行149米',\n",
       "         'road': '海清路',\n",
       "         'distance': '149',\n",
       "         'duration': [],\n",
       "         'polyline': '113.338509,23.112669;113.338531,23.112696;113.338539,23.112782;113.338524,23.113186;113.338493,23.114019',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '3.0',\n",
       "    'duration': '2938',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '2904',\n",
       "    'distance': '7042',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.351013,23.131449',\n",
       "       'destination': '113.339600,23.134882',\n",
       "       'distance': '1705',\n",
       "       'duration': '1461',\n",
       "       'steps': [{'instruction': '沿明湖南路步行35米左转',\n",
       "         'road': '明湖南路',\n",
       "         'distance': '35',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351013,23.131449;113.351357,23.131479',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真如东路步行219米向右前方行走',\n",
       "         'road': '真如东路',\n",
       "         'distance': '219',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351357,23.131479;113.351288,23.132196;113.351280,23.132383;113.351265,23.132973;113.351242,23.133142;113.351219,23.133255;113.351105,23.133425',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真如东路步行311米右转',\n",
       "         'road': '真如东路',\n",
       "         'distance': '311',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351105,23.133425;113.351105,23.133646;113.350967,23.134319;113.350739,23.135208;113.350723,23.135242;113.350685,23.135265;113.350037,23.135382;113.349899,23.135382;113.349792,23.135382;113.349709,23.135386',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行25米左转',\n",
       "         'road': [],\n",
       "         'distance': '25',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349709,23.135386;113.349724,23.135477;113.349762,23.135612',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿中山大道西辅路步行48米往前走',\n",
       "         'road': '中山大道西辅路',\n",
       "         'distance': '48',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349762,23.135612;113.349297,23.135685',\n",
       "         'action': '往前走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿中山大道西步行389米往前走',\n",
       "         'road': '中山大道西',\n",
       "         'distance': '389',\n",
       "         'duration': [],\n",
       "         'polyline': '113.349289,23.135685;113.347931,23.135933;113.347603,23.135994;113.347290,23.136055;113.347237,23.136068;113.346786,23.136150;113.345551,23.136272',\n",
       "         'action': '往前走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿天河路辅路步行510米左转',\n",
       "         'road': '天河路辅路',\n",
       "         'distance': '510',\n",
       "         'duration': [],\n",
       "         'polyline': '113.345543,23.136272;113.345161,23.136219;113.344955,23.136181;113.344780,23.136147;113.343987,23.135981;113.343697,23.135916;113.343346,23.135841;113.342941,23.135756;113.342758,23.135715;113.342560,23.135668;113.342316,23.135612;113.342033,23.135538;113.341805,23.135481;113.341431,23.135395;113.340897,23.135260;113.340675,23.135187;113.340637,23.135170',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行168米到达岗顶',\n",
       "         'road': [],\n",
       "         'distance': '168',\n",
       "         'duration': [],\n",
       "         'polyline': '113.340630,23.135174;113.340607,23.134878;113.340248,23.134731;113.340080,23.135078;113.339600,23.134882',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达岗顶'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '岗顶',\n",
       "          'id': '440100023034005',\n",
       "          'location': '113.339601,23.134880'},\n",
       "         'arrival_stop': {'name': '珠江新城',\n",
       "          'id': '440100023034008',\n",
       "          'location': '113.321206,23.119293'},\n",
       "         'name': '地铁3号线(天河客运站--番禺广场)',\n",
       "         'id': '440100023034',\n",
       "         'type': '地铁线路',\n",
       "         'distance': '3158',\n",
       "         'duration': '316',\n",
       "         'polyline': '113.339601,23.134880;113.338709,23.134517;113.338282,23.134328;113.338056,23.134226;113.337864,23.134149;113.337673,23.134069;113.337473,23.134001;113.337212,23.133924;113.336968,23.133861;113.336742,23.133806;113.336464,23.133743;113.335455,23.133493;113.334924,23.133353;113.334733,23.133305;113.334585,23.133277;113.334305,23.133216;113.333834,23.133138;113.333091,23.133116;113.332124,23.133135;113.331184,23.133151;113.330589,23.133198;113.328752,23.133418;113.328183,23.133479;113.327289,23.133514;113.326354,23.133514;113.325081,23.133547;113.324429,23.133601;113.323537,23.133645;113.322613,23.133645;113.322308,23.133591;113.321994,23.133405;113.321558,23.132971;113.321548,23.132550;113.321503,23.131138;113.321456,23.129680;113.321411,23.128625;113.321320,23.127081;113.321280,23.124987;113.321239,23.122875;113.321210,23.120814;113.321206,23.119293',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0610',\n",
       "         'end_time': '2330',\n",
       "         'via_num': '2',\n",
       "         'via_stops': [{'name': '石牌桥',\n",
       "           'id': '440100023034006',\n",
       "           'location': '113.332124,23.133135'},\n",
       "          {'name': '体育西路',\n",
       "           'id': '440100023034007',\n",
       "           'location': '113.321503,23.131138'}]}]},\n",
       "      'entrance': {'name': 'D口', 'location': '113.340599,23.134874'},\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': [],\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '珠江新城',\n",
       "          'id': '440100023037014',\n",
       "          'location': '113.321206,23.119293'},\n",
       "         'arrival_stop': {'name': '猎德',\n",
       "          'id': '440100023037015',\n",
       "          'location': '113.332105,23.118539'},\n",
       "         'name': '地铁5号线(滘口--文冲)',\n",
       "         'id': '440100023037',\n",
       "         'type': '地铁线路',\n",
       "         'distance': '980',\n",
       "         'duration': '133',\n",
       "         'polyline': '113.321206,23.119293;113.322586,23.119290;113.324445,23.119121;113.326668,23.118952;113.329169,23.118750;113.331498,23.118582;113.332105,23.118539',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0615',\n",
       "         'end_time': '2315',\n",
       "         'via_num': '0',\n",
       "         'via_stops': []}]},\n",
       "      'entrance': [],\n",
       "      'exit': {'name': 'B口', 'location': '113.332726,23.118099'},\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.332100,23.118532',\n",
       "       'destination': '113.337875,23.114063',\n",
       "       'distance': '1198',\n",
       "       'duration': '1026',\n",
       "       'steps': [{'instruction': '步行151米右转',\n",
       "         'road': [],\n",
       "         'distance': '151',\n",
       "         'duration': [],\n",
       "         'polyline': '113.332100,23.118532;113.332779,23.118494;113.332809,23.118494;113.332779,23.118095;113.332726,23.118099;113.332695,23.118359',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿花城大道步行22米向右前方行走',\n",
       "         'road': '花城大道',\n",
       "         'distance': '22',\n",
       "         'duration': [],\n",
       "         'polyline': '113.332687,23.118359;113.332909,23.118347',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿猎德大道步行79米向右前方行走',\n",
       "         'road': '猎德大道',\n",
       "         'distance': '79',\n",
       "         'duration': [],\n",
       "         'polyline': '113.332909,23.118341;113.333267,23.118065;113.333488,23.117851',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿猎德大道步行298米右转',\n",
       "         'road': '猎德大道',\n",
       "         'distance': '298',\n",
       "         'duration': [],\n",
       "         'polyline': '113.333488,23.117847;113.333519,23.117331;113.333519,23.117266;113.333534,23.116875;113.333542,23.116472;113.333549,23.116064;113.333557,23.115938;113.333580,23.115339;113.333588,23.115129',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行25米向右前方行走',\n",
       "         'road': [],\n",
       "         'distance': '25',\n",
       "         'duration': [],\n",
       "         'polyline': '113.333580,23.115126;113.333488,23.115126;113.333488,23.115269',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行81米右转',\n",
       "         'road': [],\n",
       "         'distance': '81',\n",
       "         'duration': [],\n",
       "         'polyline': '113.333488,23.115269;113.334015,23.115820',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行32米往前走',\n",
       "         'road': [],\n",
       "         'distance': '32',\n",
       "         'duration': [],\n",
       "         'polyline': '113.334015,23.115820;113.334076,23.115639;113.334122,23.115561',\n",
       "         'action': '往前走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行10米右转',\n",
       "         'road': [],\n",
       "         'distance': '10',\n",
       "         'duration': [],\n",
       "         'polyline': '113.334122,23.115555;113.334198,23.115490',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行10米右转',\n",
       "         'road': [],\n",
       "         'distance': '10',\n",
       "         'duration': [],\n",
       "         'polyline': '113.334198,23.115486;113.334282,23.115435',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行109米左转',\n",
       "         'road': [],\n",
       "         'distance': '109',\n",
       "         'duration': [],\n",
       "         'polyline': '113.334282,23.115429;113.334244,23.115152;113.334145,23.114449',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿海月路步行381米',\n",
       "         'road': '海月路',\n",
       "         'distance': '381',\n",
       "         'duration': [],\n",
       "         'polyline': '113.334137,23.114445;113.334671,23.114445;113.335442,23.114445;113.335617,23.114435;113.336395,23.114305;113.336525,23.114275;113.337234,23.114119;113.337318,23.114111;113.337700,23.114071;113.337875,23.114063',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '2.0',\n",
       "    'duration': '3285',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '1856',\n",
       "    'distance': '5680',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.350975,23.131445',\n",
       "       'destination': '113.351860,23.125507',\n",
       "       'distance': '777',\n",
       "       'duration': '666',\n",
       "       'steps': [{'instruction': '沿明湖南路步行37米右转',\n",
       "         'road': '明湖南路',\n",
       "         'distance': '37',\n",
       "         'duration': [],\n",
       "         'polyline': '113.350975,23.131445;113.351013,23.131449;113.351357,23.131479',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿真如东路步行589米向左前方行走',\n",
       "         'road': '真如东路',\n",
       "         'distance': '589',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351357,23.131479;113.351517,23.130053;113.351746,23.127756;113.351746,23.127552;113.351555,23.127048;113.351562,23.126328;113.351540,23.126207',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行71米往前走',\n",
       "         'road': [],\n",
       "         'distance': '71',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351540,23.126202;113.351608,23.126177;113.351486,23.125973;113.351601,23.125769;113.351715,23.125793',\n",
       "         'action': '往前走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行59米右转',\n",
       "         'road': [],\n",
       "         'distance': '59',\n",
       "         'duration': [],\n",
       "         'polyline': '113.351715,23.125793;113.351852,23.125813;113.351936,23.125799;113.351967,23.125772;113.352028,23.125729;113.352043,23.125687;113.352066,23.125517',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行21米到达华侨医院(潭村)',\n",
       "         'road': [],\n",
       "         'distance': '21',\n",
       "         'duration': [],\n",
       "         'polyline': '113.352066,23.125513;113.351860,23.125507',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达华侨医院(潭村)'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '华侨医院(潭村)',\n",
       "          'id': '440100016909035',\n",
       "          'location': '113.351713,23.125436'},\n",
       "         'arrival_stop': {'name': '猎德东',\n",
       "          'id': '440100016909014',\n",
       "          'location': '113.331558,23.118460'},\n",
       "         'name': '583路(员村一横路总站--芳村西塱总站)',\n",
       "         'id': '440100016909',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '3824',\n",
       "         'duration': '1695',\n",
       "         'polyline': '113.351713,23.125436;113.351562,23.125319;113.351051,23.125387;113.350380,23.125525;113.348694,23.125820;113.348137,23.125938;113.347801,23.125998;113.347450,23.126015;113.347298,23.126011;113.346436,23.126080;113.346230,23.126215;113.346016,23.126221;113.345619,23.126234;113.344696,23.126293;113.344032,23.126343;113.343956,23.126347;113.343887,23.126354;113.343674,23.126375;113.343460,23.126389;113.343292,23.126406;113.343117,23.126415;113.342972,23.126425;113.342819,23.126431;113.342323,23.126467;113.341743,23.126507;113.341522,23.126520;113.340981,23.126549;113.340614,23.126549;113.340424,23.126524;113.339592,23.126585;113.339470,23.126593;113.338676,23.126657;113.338058,23.126684;113.337997,23.126694;113.337830,23.126694;113.337746,23.126766;113.337410,23.126793;113.336723,23.126844;113.336571,23.126858;113.335106,23.126966;113.334961,23.126976;113.334282,23.127014;113.334152,23.127022;113.333939,23.127035;113.333717,23.127045;113.333557,23.127001;113.333443,23.126953;113.333244,23.126808;113.333176,23.126722;113.333168,23.126398;113.333168,23.126221;113.333191,23.125843;113.333229,23.125433;113.333244,23.124969;113.333275,23.124340;113.333397,23.124149;113.333397,23.123671;113.333344,23.123537;113.333336,23.123329;113.333336,23.123274;113.333298,23.123116;113.333244,23.123043;113.333122,23.122978;113.332886,23.122965;113.331841,23.123043;113.330780,23.123129;113.330536,23.123152;113.330421,23.123159;113.330193,23.123125;113.329697,23.123165;113.329376,23.123196;113.328613,23.123251;113.328178,23.123363;113.327850,23.123091;113.327904,23.122473;113.327904,23.122177;113.327904,23.121723;113.327858,23.121151;113.327858,23.120970;113.327843,23.119867;113.327843,23.119427;113.327843,23.119328;113.327715,23.119145;113.327628,23.119062;113.327576,23.118971;113.327492,23.119040;113.326553,23.119089;113.326347,23.119112;113.326137,23.119121;113.326094,23.119103;113.326042,23.119041;113.326050,23.118849;113.326416,23.118816;113.326782,23.118784;113.327469,23.118725;113.327827,23.118752;113.328087,23.118729;113.328453,23.118706;113.329308,23.118647;113.329674,23.118616;113.330666,23.118538;113.330734,23.118534;113.331558,23.118460',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0630',\n",
       "         'end_time': '2200',\n",
       "         'via_num': '6',\n",
       "         'via_stops': [{'name': '国防大厦',\n",
       "           'id': '440100016909008',\n",
       "           'location': '113.341743,23.126507'},\n",
       "          {'name': '石牌村',\n",
       "           'id': '440100016909009',\n",
       "           'location': '113.339592,23.126585'},\n",
       "          {'name': '猎德大道北',\n",
       "           'id': '440100016909042',\n",
       "           'location': '113.333336,23.123329'},\n",
       "          {'name': '金穗路',\n",
       "           'id': '440100016909011',\n",
       "           'location': '113.329697,23.123165'},\n",
       "          {'name': '冼村路中',\n",
       "           'id': '440100016909012',\n",
       "           'location': '113.327843,23.119867'},\n",
       "          {'name': '猎德',\n",
       "           'id': '440100016909013',\n",
       "           'location': '113.329674,23.118616'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.331665,23.118454',\n",
       "       'destination': '113.337875,23.114063',\n",
       "       'distance': '1079',\n",
       "       'duration': '924',\n",
       "       'steps': [{'instruction': '沿花城大道步行246米向右前方行走',\n",
       "         'road': '花城大道',\n",
       "         'distance': '246',\n",
       "         'duration': [],\n",
       "         'polyline': '113.331665,23.118454;113.331879,23.118437;113.332687,23.118364;113.332909,23.118347;113.333267,23.118065;113.333267,23.118065;113.333473,23.118280;113.333885,23.118259',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行31米右转',\n",
       "         'road': [],\n",
       "         'distance': '31',\n",
       "         'duration': [],\n",
       "         'polyline': '113.333885,23.118256;113.334099,23.118055',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿花城大道步行29米向左前方行走',\n",
       "         'road': '花城大道',\n",
       "         'distance': '29',\n",
       "         'duration': [],\n",
       "         'polyline': '113.334099,23.118052;113.334068,23.118025;113.333900,23.117851',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿猎德大道步行375米左转',\n",
       "         'road': '猎德大道',\n",
       "         'distance': '375',\n",
       "         'duration': [],\n",
       "         'polyline': '113.333900,23.117847;113.333916,23.117365;113.333931,23.116741;113.333939,23.116358;113.333969,23.115152;113.333969,23.114449',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿海月路步行398米',\n",
       "         'road': '海月路',\n",
       "         'distance': '398',\n",
       "         'duration': [],\n",
       "         'polyline': '113.333969,23.114445;113.334137,23.114445;113.334671,23.114445;113.335442,23.114445;113.335617,23.114435;113.336395,23.114305;113.336525,23.114275;113.337234,23.114119;113.337318,23.114111;113.337700,23.114071;113.337875,23.114063',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]}]}}"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "address1 = '广州暨南大学'\n",
    "address2 = '猎德'\n",
    "暨南大学_location = geocode(API_key,address1)\n",
    "猎德_location = geocode(API_key,address2)\n",
    "url_bus = \"https://restapi.amap.com/v3/direction/transit/integrated?parameters\"\n",
    "params_bus = {\n",
    "    \"key\":API_key, \n",
    "    \"origin\":暨南大学_location, \n",
    "    \"destination\":猎德_location,\n",
    "    \"city\":'广州'\n",
    "}\n",
    "r = requests.get(url_bus, params_bus)\n",
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>taxi</th>\n",
       "      <th>entrance</th>\n",
       "      <th>exit</th>\n",
       "      <th>walking.origin</th>\n",
       "      <th>walking.destination</th>\n",
       "      <th>walking.distance</th>\n",
       "      <th>walking.duration</th>\n",
       "      <th>walking.steps</th>\n",
       "      <th>bus.buslines</th>\n",
       "      <th>railway.via_stops</th>\n",
       "      <th>railway.alters</th>\n",
       "      <th>railway.spaces</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.350975,23.131445</td>\n",
       "      <td>113.349510,23.123823</td>\n",
       "      <td>1234</td>\n",
       "      <td>1057</td>\n",
       "      <td>[{'instruction': '沿明湖南路步行37米右转', 'road': '明湖南路...</td>\n",
       "      <td>[{'departure_stop': {'name': '跑马地花园', 'id': '9...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.337013,23.112679</td>\n",
       "      <td>113.338493,23.114019</td>\n",
       "      <td>311</td>\n",
       "      <td>266</td>\n",
       "      <td>[{'instruction': '沿临江大道步行139米左转', 'road': '临江大...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  taxi entrance exit        walking.origin   walking.destination  \\\n",
       "0   []       []   []  113.350975,23.131445  113.349510,23.123823   \n",
       "1   []       []   []  113.337013,23.112679  113.338493,23.114019   \n",
       "\n",
       "  walking.distance walking.duration  \\\n",
       "0             1234             1057   \n",
       "1              311              266   \n",
       "\n",
       "                                       walking.steps  \\\n",
       "0  [{'instruction': '沿明湖南路步行37米右转', 'road': '明湖南路...   \n",
       "1  [{'instruction': '沿临江大道步行139米左转', 'road': '临江大...   \n",
       "\n",
       "                                        bus.buslines railway.via_stops  \\\n",
       "0  [{'departure_stop': {'name': '跑马地花园', 'id': '9...                []   \n",
       "1                                                 []                []   \n",
       "\n",
       "  railway.alters railway.spaces  \n",
       "0             []             []  \n",
       "1             []             []  "
      ]
     },
     "execution_count": 36,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(r.json()['route']['transits'][0]['segments'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": true
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
